Created
Jul 29, 2025
Last Modified
2 weeks ago

Asymtotic Notation

Asymtotic Notation

Asymtot is a barier blockage which stop the ...

Asymtotic notation are used to categorise the function on the basis of their growth.

There are 3 main category of Asymtotic notation


Big O Notation

Let t(n) and g(n) are two positive functions then

t(n) is said to be in O{g(n)} if:

t(n) is bounded above by some positive constant multiple of g(n) for large values of n

let t(n) = 100n + 6

100n + 6 <= 100n + n, (n >= 6)

100n + 6 <= 101n (n >= 6)

101n <= 101 (whenever n >= 1)

100n + 6 <= 101 (whenever n >= 6)

why did we take n >= 1

100n + 6 <= 101 whenever n >= 6

100n + 6 O()

100n + 6 <= 101n whenever n>=6

100n <= 101 whenever n >= 1


Big Notation

let t(n) and g(n) are two positive function

then:

t(n) is said to be in if t(n) is bounded bellow by some positive constant of g(n) multiple of g(n) for large values of n

example:


Theta Notation

let t(n) and g(n) are two positive function then t(n) is said to be in {g(n)} if

t(n) is bounded above and bounded below by some positive constant multiple of g(n) for large values of n

i.e.

example:

Inequality no 1


Again

Whenever

Whenever

Inequality no 2

Whenever


In common reason both the equality will be valid simultaneously

thus we have

Theta notation example demonstrating c1·g(n) ≤ t(n) ≤ c2·g(n) with a quadratic bound, illustrating tight bound Θ(g(n)).

Note

Big-O and Omega bounds illustration showing c1·g(n) ≤ t(n) ≤ c2·g(n), representing lower bound Ω(g(n)) and upper bound O(g(n)).

Bidirectional implication.


Theorem 1

If

then


Proof

We know that

and


Let

Then, for all ​, inequalities (1) and (2) hold simultaneously.

Thus,

Now, observe that

Therefore,


Since , we also know there exists a constant such that

This implies that for sufficiently large ,

Hence,


From (3) and (4), we conclude:

✅ Hence proved


Theorem 2

If

then


Proof

We have

and


Let

Then, for all ​, both inequalities (1) and (2) hold.


Multiplying (1) and (2):

Thus,


✅ Hence proved


find the Big O estimation of n! and

Step-by-step inequality showing n! ≤ nⁿ by bounding each factorial term with n, used to prove an asymptotic upper bound.

;


Taking log both side