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.

428 ASYMPTOTIC3<br />

How about the functio:n efi; where does it live in the hierarchy? We<br />

can answer questions like this by using the rule<br />

which follows in two steps from definition (9.3) by taking logarithms. Consequently<br />

1 + f(n) 4 s(n) ==+ eiflnll + e191”ll .<br />

And since 1 4 log logn 4 \/logn 4 c logn, we have logn + ee + n6.<br />

When two functions f(n) and g(n) have the same rate of growth, we<br />

write ‘f(n) x g(n)‘. The ofhcial definition is:<br />

f(n) =: s(n) W f(n)1 < Clg(n)l and Is(n)1 6 Clf(nll,<br />

<strong>for</strong> some C and <strong>for</strong> all sufficiently large n. (9.8)<br />

This holds, <strong>for</strong> example, if f(n) is constant and g(n) = cos n + arctan n. We<br />

will prove shortly that it h.olds whenever f(n) and g(n) are polynomials of<br />

the same degree. There’s al.so a stronger relation, defined by the rule<br />

In this case we say that “f(n) is asymptotic to g(n)!’<br />

G. H. Hardy [148] introduced an interesting and important concept called<br />

the class of logarithmico-exponential functions, defined recursively as the<br />

smallest family C of functions satisfying the following properties:<br />

. The constant function f(n) = 01 is in C, <strong>for</strong> all real 01.<br />

. The identity function f(n) = n is in C.<br />

. If f(n) and g(n) are in 2, so is f(n) - g(n).<br />

. If f(n) is in 2, so is efcni.<br />

. If f(n) is in C and is “eventually positive,” then lnf(n) is in C.<br />

A function f(n) is called “eventually positive” if there is an integer no such<br />

that f(n) > 0 whenever n 2: no.<br />

We can use these rules to show, <strong>for</strong> example, that f(n) + g(n) is in C<br />

whenever f(n) and g(n) are, because f(n) + g(n) = f(n) - (O-g(n)). If f(n)<br />

and g(n) are eventually positive members of C, their product f(n) g(n) =<br />

elnf(n)+lnsin) and quotient f(n)/g(n) = elnf(nlm lnsini are in C; so are functions<br />

like m = eilnf(nl, etc. Hardy proved that every logarithmicoexponential<br />

function is eventually positive, eventually negative, or identically<br />

zero. There<strong>for</strong>e the product and quotient of any two C-functions is in 2,<br />

except that we cannot divide by a function that’s identically zero.

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

Saved successfully!

Ooh no, something went wrong!