09.12.2012 Views

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

452 ASYMPTOTICS<br />

This last estimate follows because, <strong>for</strong> example,<br />

k>n<br />

(Exercise 54 discusses a more general way to estimate such tails.)<br />

The third sum in (9.60) is<br />

by an argument that’s already familiar. So (9.60) proves that<br />

p%<br />

9 n = 7 + 0 (log n/n)3<br />

Finally, we can feed this <strong>for</strong>mula back into the recurrence, bootstrapping once<br />

more; the result is<br />

en2/b<br />

9 n = 7 + O(logn/n3)<br />

(Exercise 23 peeks inside the remaining 0 term.)<br />

Trick 2: Trading tails.<br />

We derived (9.62) in somewhat the same way we derived the asymptotic<br />

value (9.56) of O(n): In both cases we started with a finite sum but got an<br />

asymptotic value by considering an infinite sum. We couldn’t simply get the<br />

infinite sum by introducing 0 into the summand; we had to be careful to use<br />

one approach when k was small and another when k was large.<br />

Those derivations were special cases of an important three-step asymp- (This importotic<br />

summation method we will now discuss in greater generality. Whenever tant method waS<br />

we want to estimate the value of x k ok (n), we can try the following approach:<br />

pioneered by<br />

Lap/ace [195 ‘1.)<br />

1 First break the sum into two disjoint ranges, D, and T,,. The summation<br />

over D, should be the “dominant” part, in the sense that it includes<br />

enough terms to determine the significant digits of the sum, when n is<br />

large. The summation over the other range T,, should be just the “tail”<br />

end, which contributes little to the overall total.<br />

2 Find an asymptotic estimate<br />

ak(n) = bk(n) + O(ck(n))<br />

that is valid when k E D,. The 0 bound need not hold when k E T,.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!