f(n)
is O(g(n))
iff there are constants c
and n0
such that for all n > n0
,
|f(n)| < c |g(n)|
.
f(n) ~ g(n)
iff
the limit as n
gets big of
|f(n)| / |g(n|
is 1
.
Here is the Javadoc for Java these classes. They classes are also available as a jar file: cmp338.jar (last modified: 12/13/12). To import them into Eclipse:
API
(say), under Eclipse.API
project folder.File
menu, select Import...
.Import
popup, select General ~> Archive File
, then click Next
.Browse...
button,
to put the path to the just downloaded cmp338.jar
file in the From archive file:
field.
edu
folder under the src
folder.