Practice Discrete Math

Algorithms / Asymptotic Analysis

Least You Need to Know: Big-O, Theta, and Omega

Asymptotic notation compares growth rates. **Big-O** gives an eventual upper bound, **Omega** gives a lower bound, and **Theta** means the growth is tightly sandwiched between both.

The least you need to know

Key notation

O(f(n)) eventual upper bound
Ω(f(n)) eventual lower bound
Θ(f(n)) tight bound

Tiny worked example

  • For `3n^2 + 7n + 4`, the `n^2` term dominates for large `n`.
  • So the function is `Θ(n^2)`.
  • That automatically means it is also `O(n^2)` and `Ω(n^2)`.

Common mistakes

How to recognize this kind of problem

Start practice