Θ(g(n)) = {f(n) : | ∃ pos. consts. c1, c2, and n0 such that |
0 ≤ c1g(n) ≤ f(n) ≤ c2g(n) for all n ≥ n0} |
Note:
O(g(n)) = {f(n) : | ∃ positive constants c and n0 such that |
0 ≤ f(n) ≤ cg(n) for all n ≥ n0} |
Note:
Ω(g(n)) = {f(n) : | ∃ positive constants c and n0 such that |
0 ≤ cg(n) ≤ f(n) for all n ≥ n0} |
Note:
For any two functions f(n) and g(n), we have f(n) = &Theta(g(n)) if and only if f(n) = O(g(n)) and f(n) = Ω(g(n)).
Proof?