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.

7.6 EXPONENTIAL GENERATING FUNCTIONS 355<br />

<strong>for</strong> all n > 1. Here”s why: There are (k, ,:,,‘,,k_) ways to assign n- 1 elements<br />

to a sequence of TTL components of respective sizes kl, k2, . . . , k,; there are<br />

tk, tk1 . . . tk, ways to connect up those individual components with spanning<br />

trees; there are kr k.2 . . . k, ways to connect vertex n to those components; and<br />

we divide by m! because we want to disregard the order of the components.<br />

For example, when n = 4 the recurrence says that<br />

t4 = 3t3 + ;((,32)2W2 + (23,)2tzt,) + ;((, ; ,)tf) = 3t3 + 6tzt, + t;.<br />

3 I<br />

The recurrence <strong>for</strong> t, looks <strong>for</strong>midable at first, possibly even frightening;<br />

but it really isn’t bad, only convoluted. We can define<br />

u n = nt,<br />

and then everything simplifies considerably:<br />

%I<br />

n! = m>O m!<br />

IL 1 - -<br />

-<br />

uk, ukj<br />

-<br />

uk<br />

m<br />

t k,! k2! “’ k,! ’<br />

kl+kJ+...+k,=n-1<br />

ifn>l. (7.82)<br />

The inner sum is the coefficient of z+’ .m the egf 0 (z) , raised to the mth<br />

power; and we obtain the correct <strong>for</strong>mula also when n = 1, if we add in the<br />

term fi(z)O that corresponds to the case m = 0. So<br />

WI<br />

- = [P’] t ; ti(p<br />

n!<br />

In>0 .<br />

<strong>for</strong> all n > 0, and we have the equation<br />

Progress! Equation (7,83) is almost like<br />

E(z) = erEcri,<br />

= [z”-‘] ,w = [zn] ,,w<br />

(7.83)<br />

which defines the generalized exponential series E(z) = El (z) in (5.59) and<br />

(7.70); indeed, we have<br />

cl(z) = z&(z)<br />

So we can read off the answer to our problem:<br />

t, = X = z [zn] Cl(z) = (n-l)! [z”~‘] E(z) = nnp2 (7.84)<br />

The complete graph on {l ,2, . . . , n} has exactly nn ’ spanning trees, <strong>for</strong> all<br />

n > 0.

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

Saved successfully!

Ooh no, something went wrong!