Analysis PDF
Analysis PDF
Generally, its OK to disregard lower-order terms when doing worstcase analysis on algorithmic complexity. For asymptotically large input
values, dropping these terms loses very little predictive power. The following
notations are ways to describe the asymptotic behavior of functions, or how
a function grows when input size n becomes very large. Big-Oh and BigTheta notation are most commonly used.
(g(n)) = {f (n) | (c1 , c2 , n0 ) R+ |
n n0 ,
(1)
f (n) c1 g(n)}
(2)
cg(n) f (n)}
(3)
(4)
(5)