Beginner
What do Big O, Θ and Ω mean?
Reveal answer and example
Big O is an asymptotic upper bound, Ω a lower bound and Θ a tight bound in a stated cost model. Specify worst case, expected or amortized separately; the notation alone does not choose a case.
Example: A complete array scan is Θ(n) even though O(n²) is also a loose upper bound.
Common mistake: Big O is not a stopwatch measurement or automatically the worst case.
Follow-up: Why can an O(n²) algorithm win for tiny inputs?