Grokking Algorithm Complexity and Big-O
Ask Author
Back to course home

0% completed

Vote For New Content
Comparing Asymptotic Notations
On this page

Overview of Asymptotic Notations

Comparison Table of Asymptotic Notations

Overview of Asymptotic Notations

In algorithm analysis, asymptotic notations describe the growth rates of functions as input size becomes very large. Each notation serves a specific purpose in bounding or comparing functions:

  1. Big-O Notation (O) – Defines an upper bound.
  2. Big-Omega Notation (Ω) – Defines a lower bound.
  3. Big-Theta Notation (Θ) – Describes a tight (exact) bound, covering both upper and lower bounds.
  4. Little-o Notation (o) – Describes a function that grows strictly slower than another.
  5. Little-omega Notation (ω) – Describes a function that grows strictly faster than another.

Comparison Table of Asymptotic Notations

NotationType of BoundDefinesDescriptionExample Relationship
Big-O (O)Upper BoundWorst-case scenariof(n) grows no faster than g(n)f(n) = O(n^2)
Big-Omega (Ω)Lower BoundBest-case scenariof(n) grows no slower than g(n)f(n) = \Omega(n)
Big-Theta (Θ)Tight BoundExact ratef(n) grows at the same rate as g(n)f(n) = \Theta(n \log n)
Little-o (o)Strictly UpperStrictly slower ratef(n) grows strictly slower than g(n)f(n) = o(n^2) for f(n) = n
Little-omega (ω)Strictly LowerStrictly faster ratef(n) grows strictly faster than g(n)f(n) = \omega(n) for f(n) = n^2

.....

.....

.....

Like the course? Get enrolled and start learning!

On this page

Overview of Asymptotic Notations

Comparison Table of Asymptotic Notations