Professional Documents
Culture Documents
Asymptotic Analysis
Asymptotic Analysis
Analyze mathematically
f(n)
N n
c.g(n)
n
N
The function f(n) is bounded both from the top and the bottom.
g(n) is an asymptotic tight bound for f(n)
time f(n)
c1.g(n)
N n
As an example of the application of this theorem, an2+bn2+c= (n2) for any constants a,b and c,
where a>0, immediately implies that an2+bn+c= (n2) and an2+bn+c= O(n2).
What is the proper means of describing the run time of these two algorithms?