Asymptotic Notations
The mathametical representation of time c
omplexity is called as Asymtotic Notation
s.
Big oh ( O)notation
Big omegap(Ω)notation
Big theta (θ) notation
Big oh (O) notation: It is a method repr
esenting upper bound of algorithm's running
time.
Definition:
Let f(n)& g(n) ---->two non negative function
s.
n0 & c -----> constants
n0 is some input n>n0 , c>0
f(n)<=c*g(n)
f(n)∈Og(n)
5
YOUR TITLE
Add your words here according to your need to draw the text box size
YOUR TITLE
Add your words here according to your need to draw the text box size
YOUR TITLE
Add your words here according to your need to draw the text box size
YOUR TITLE
Add your words here according to your need to draw the text box size
Add your title here
Example:
f(n)=2n+2 & g(n)=n2
If n=3
f(n)=2(3)+2=8
g(n)=(3)2=9
f(n)<g(n)
90%
Big omega(Ω)notation
This represents lower boun
d of algorithm running time.
f(n)>=c*g(n)
f(n)=2n2+5 & g(n)=7n
n=0
f(n)=5 & g(n)=0
f(n)>g(n) f(n)∈Ωg(n)
Theta notation :(θ )
By this method tbe running time is betw
een upper bound and lower bound.
C1*g(n)<=f(n)<=c2*g(n)
Then say that
f(n)∈θg(n)
Example:
If f(n)=2n+8 & g(n)=7n
I e 5n<2n+8<7n n>=2
Hint:
1<log n<n<n2<n3........<2n
Upper bond
Hint:
1< log n < n< n2<n3........< 2n
Lower bound
Hint:
1< log n< n<n2<n3.........<2
n
Exact
Asymptotic Notation

Asymptotic Notation