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.

The solution is given by the super generating function<br />

G(w,z) = 2 G,(z)w” = A(w)/(l - zB(w)) ,<br />

n30<br />

A ANSWERS TO EXERCISES 559<br />

where B(w) = w(qf-(qf-p,,)w)/(l -qhw) and A(w) = (1 -B(w))/(l -w).<br />

Now tnaO GA(l)w” = cxw/(l -w)~+ B/(1 -w) - B/(1 - (qf -ph)w) where<br />

OL=Ph<br />

Ph+Pf ’<br />

B = Pf(qf -Ph) .<br />

(Ph+Pf)’ ’<br />

hence G;(l) = cxnf fi(l - (qf-ph)n). (Similarly G:(l) = K2n2 + O(n), so<br />

the variance is O(n).)<br />

8.43 G,(z) = 1k20 [L].zk/n! = z?/n!, by (6.11). This is a product of<br />

binomialpgf’s, nE=, ((k-l +z)/k), wh ere the kth has mean 1 /k and variance<br />

(k- 1)/k’; hence Mean = H, and Var(G,) = H, - Ht).<br />

8.44 (a) The champion must be undefeated in n rounds, so the answer is pn.<br />

(b,c) Players xl, . . . , X~L must be “seeded” (by chance) in distinct subtournaments<br />

and they must win all 2k(n - k) of their matches. The 2” leaves of<br />

the tournament tree can be filled in 2n! ways; to seed it we have 2k!(2”-k)2k<br />

ways to place the top 2k players, and (2” - 2k)! ways to place the others.<br />

Hence the probability is (2p)2k’n-k)/(iE). When k = 1 this simplifies to<br />

(2~~)“~l/(2” - 1). (d) Each tournament outcome corresponds to a permutation<br />

of the players: Let y1 be the champ; let y2 be the other finalist; let y3 and<br />

y4 be the players who lost to yr and y2 in the semifinals; let (ys, . . . ,ys) be<br />

those who lost respectively to (y, , . . . ,y4) in the quarterfinals; etc. (Another<br />

proof shows that the first round has 2n!/2n-1! essentially different outcomes;<br />

the second round has 2np1!/2np2!; and so on.) (e) Let Sk be the set of 2kp1<br />

potential opponents of x2 in the kth round. The conditional probability that<br />

x2 Wins, given that xl belongs to Sk, is<br />

Pr(xl plays x2) .pn-’ (1 -p) + Pr(xl doesn’t play x2) .p”<br />

= pkP’pnP’(l -p) + (1 -pypn.<br />

The chance that x1 E Sk is 2kp1/(2n - 1); summing on k gives the answer:<br />

*;, -$&(pk-‘p+p) + (I-pk-‘)pn) = pn - (‘,“n’“, ’ pnp’ .<br />

t<br />

(f) Each of the 2”! tournament outcomes has a certain probability of occurring,<br />

and the probability that xj wins is the sum of these probabilities over<br />

all (2” - 1 )! tournament outcomes in which xj is champion. Consider interchanging<br />

xj with xj+l in all those outcomes; this change doesn’t affect the

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

Saved successfully!

Ooh no, something went wrong!