Chapter 14 Sums and Asymptotics434
Definition 14.7.12.
fD‚.g/ iff fDO.g/andgDO.f /:
The statementf D‚.g/can be paraphrased intuitively as “fandgare equal
to within a constant factor.”
The Theta notation allows us to highlight growth rates and allow suppression
of distracting factors and low-order terms. For example, if the running time of an
algorithm is
T.n/D10n^3 20n^2 C1;
then we can more simply write
T.n/D‚.n^3 /:
In this case, we would say thatTis of ordern^3 or thatT.n/grows cubically, which
is probably what we really want to know. Another such example is
^23 x ^7 C
.2:7x^113 Cx^9 86/^4
p
x