Applying to Algorithms
Also, in using these functions to describe algorithms, there are a few things to note.
If we say the algorithm's running time is
O
(
n
2
), it means its worst-case running time is
O
(
n
2
), but its best case might be better.
If we say the algorithm's running time is
, it means its best-case running time is
, but its worst-case might be worse.
Therefore, an algorithm with running time
takes
on all inputs of size
n
.
Next:
Math in Big Theta
Up:
ASYMPTOTIC GROWTH
Previous:
Some Technical Details