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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

24<br />

25<br />

26<br />

27<br />

28<br />

29<br />

30<br />

31<br />

9 EXERCISES 477<br />

Suppose a, = O(f(n)) and b, = O(f(n)). Prove or disprove that the<br />

convolution ~~==, akb+k is also O(f(n)), in the following cases:<br />

a f(n) = n-“:, a > 1.<br />

b f(n) = a-n,, OL > 1.<br />

Prove (9.1) and (9.2), with which we opened this chapter.<br />

Equation (9.~1) shows how to evaluate In lo! with an absolute error <<br />

A. There<strong>for</strong>e if we take exponentials, we get lo! with a relative<br />

error that is less than e1/126000000 - 1 < 1 Op8. (In fact, the approximation<br />

gives 3628799.9714.) If we now round to the nearest integer, knowing that<br />

lo! is an integer, we get an exact result.<br />

Is it always possible to calculate n! in a similar way, if enough terms of<br />

Stirling’s approximation are computed? Estimate the value of m that<br />

gives the best approximation to Inn!, when n is a fixed (large) integer.<br />

Compare the absolute error in this approximation with n! itself.<br />

Use Euler’s summation <strong>for</strong>mula to find the asymptotic value of Hipa) =<br />

,E:=, ka, where a is any fixed real number. (Your answer may involve a<br />

constant that you do not know in closed <strong>for</strong>m.)<br />

Exercise 5.13 defines the hyperfactorial function Q,, = 1 122 . . . nn. Find<br />

the asymptotic value of Qn with relative error O(n’). (Your answer<br />

may involve a constant that you do not know in closed <strong>for</strong>m.)<br />

Estimate the function 1”’ 2’i2 . . . n”” as in the previous exercise.<br />

Find the asymptotic value of &O k’epkL”’ with absolute error O(n3),<br />

when 1 is a fixed nonnegative integer.<br />

Evaluate tk20 l/(ck+cm) with absolute error O(C-~~), when c > 1 and<br />

m is a positive iinteger.<br />

Exam problems<br />

32 Evaluate eHn+Hiz’ with absolute error O(n-‘).<br />

33 Evaluate tkao (;)/n’ with absolute error O(np3).<br />

34 Determine values A through F such that (1 + 1 /n)“Hn is<br />

E(lnn)’ Flnn<br />

An+B(lnn)2+Clnn+D+I+-+O(n-‘).<br />

35 Evaluate I:=, 1 /kHk with absolute error 0( 1).<br />

36 Evaluate S, = xF=, l/(n’ + k2) with absolute error O(n5).<br />

37 Evaluate IF=, ln mod k) with absolute error O(nlogn).<br />

38 Evaluate tkaO kk (i) with relative error 0 (n-’ ) .

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

Saved successfully!

Ooh no, something went wrong!