Skip to main content

Small o vs small omega

Short answer

Small o: f grows strictly slower than g (lim f/g = 0, strict upper bound). Small ω: f grows strictly faster (lim f/g = ∞, strict lower bound). Example: n = o(n²) but n² ≠ o(n²); n² = ω(n) but n² ≠ ω(n²).

Differentiate between small o and small ω notations.

PointSmall oSmall ω
Meaningf grows strictly slower than gf grows strictly faster than g
Definitionf(n) < c·g(n) for every c > 0, for n ≥ n₀f(n) > c·g(n) for every c > 0, for n ≥ n₀
Limitlim f(n)/g(n) = 0lim f(n)/g(n) = ∞
Bound typeStrict upper boundStrict lower bound
Relation to big formso ⊂ O (not tight)ω ⊂ Ω (not tight)
Examplen = o(n²), but n² ≠ o(n²)n² = ω(n), but n² ≠ ω(n²)
Analogyf < gf > g

✓ Answer checked by Claude Opus 5.5 (high effort)

All Data Structure and Algorithm chapter 9 questions →