For functions f,g:N→R+:
- Big-O (Upper bound):
f(n)∈O(g(n))⟺∃c>0,n0∈N:∀n≥n0,f(n)≤c⋅g(n)
- Big-Ω (Lower bound):
f(n)∈Ω(g(n))⟺∃c>0,n0∈N:∀n≥n0,f(n)≥c⋅g(n)
- Big-Θ (Tight bound):
f(n)∈Θ(g(n))⟺f(n)∈O(g(n))∧f(n)∈Ω(g(n))
For recurrences of the form T(n)=aT(n/b)+f(n) with a≥1,b>1:
Let ccrit=logba.
- If f(n)=O(nc) where c<ccrit, then:
T(n)=Θ(nlogba)
- If f(n)=Θ(nccritlogkn) for k≥0, then:
T(n)=Θ(nlogbalogk+1n)
- If f(n)=Ω(nc) where c>ccrit and regularity condition holds (af(n/b)≤kf(n) for k<1), then:
T(n)=Θ(f(n))