next up previous
Next: Omega(g(n)) Up: l1 Previous: Example:

O(g(n))

f(n) = O(g(n)), g(n) is an Asymptotic Upper Bound for f(n)



O(g(n)) = {f(n): there exist positive constants c and $n_0$ such that 0 $\leq$ f(n) $\leq$ c*g(n) for all $n \geq n_0$ }



See Figure 3.1b, page 43, for graphical depiction of O.



Examples:


next up previous
Next: Omega(g(n)) Up: l1 Previous: Example: