Big O

Everyone has probably heard of big-O.

When we say the running time of a sorting algorithm is tex2html_wrap_inline396 , we are giving an asymptotic upper bound on the running time for all inputs of size n.

This is often what we want. However, saying that the running time is tex2html_wrap_inline400 is often a more precise way of saying the same thing.

Note that tex2html_wrap_inline352 implies f(n) = O(g(n)).


next up previous
Next: Some Technical Details Up: ASYMPTOTIC GROWTH Previous: Complete Set