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.

9.6 FINAL SUMMATIONS 475<br />

is bounded by 2n times its largest term, which occurs at the cutoff point k z<br />

nl/z+E. This term is known to be approximately bk (n), which is exponentially<br />

small compared with A,; and an exponentially small multiplier wipes out the<br />

factor of 2n.<br />

Thus we have ;successfully applied the tail-exchange trick to prove the<br />

estimate<br />

22n zz if 0 < E < 4. (9.99)<br />

Thanks <strong>for</strong> reading We may choose e = i and conclude that<br />

this, hope it comes<br />

in handy.<br />

-The authors<br />

0 = tln27r.<br />

QED.<br />

Exercises<br />

Warmups<br />

1 Prove or disprove: If f 1 (n) 4 gl (n) and f2 (n) + g2 (n), then we have<br />

fl (n) + f2(n) -: 91 (n) + 92(n).<br />

2 Which function grows faster:<br />

a n(inn) or (Inn)n?<br />

b n(lnln’nn) or (Inn)!?<br />

c (n!)! or I((n - l)!)! (n - l)!“!?<br />

d FfH,, or HF,?<br />

3 What’s wrong with the following argument? “Since n = O(n) and 2n =<br />

O(n) and so on, we have XL=:=, kn = Et=, O(n) = O(n2).”<br />

4 Give an example of a valid equation that has O-notation on the left but<br />

not on the right. (Do not use the trick of multiplying by zero; that’s too<br />

easy.) Hint: Consider taking limits.<br />

5 Prove or disprove: O(f(n) + g(n)) = f(n) + O(g(n)), if f(n) and g(n)<br />

are positive <strong>for</strong> all n. (Compare with (g.zT).)<br />

6 Multiply (lnn+y+O(l/n)) by (n+O(fi)), and express your answer<br />

in O-notation.<br />

7 Estimate xkaO eek/” with absolute error O(n-’ ).<br />

Basics<br />

8 Give an example of functions f(n) and g(n) such that none of the three<br />

relations f(n) 4 g(n), f(n) + g(n), f(n) x g(n) is valid, although f(n)<br />

and g(n) both. increase monotonically to 03.

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

Saved successfully!

Ooh no, something went wrong!