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.

8.5 HASHING 407<br />

The probability that the list sizes will be nl , n2, . . . , n, is the multinomial<br />

coefficient<br />

(<br />

n<br />

nl,nz,...,n,<br />

><br />

=<br />

n!<br />

nl!n2! . ..n.!<br />

divided by mn; hence the pgf <strong>for</strong> B( hl , . . . , h,) is<br />

B,(z) = = (<br />

n1 ,n2 ,....n,>o<br />

n, +n2 t...+n,=n<br />

n<br />

nl,nz,...,n,<br />

><br />

J;‘)+(;‘)+-+(“jq m-n.<br />

This sum looks a bit scary to inexperienced eyes, but our experiences in<br />

Chapter 7 have taught us to recognize it as an m-fold convolution. Indeed, if<br />

we consider the exponential super-generating function<br />

G(w,z) = ~Bn,z,~,<br />

n20<br />

we can readily verify that G (w, z) is simply an mth power:<br />

As a check, we can try setting z = 1; we get G(w, 1) = (ew)m, so the coefficient<br />

of m”w”/n! is B, (1) = 1.<br />

If we knew the values of B,/, (1) and Bt (1)) we would be able to calculate<br />

Var(B,). So we take partial derivatives of G(w, z) with respect to z:<br />

&G(w,z) = LB:,(z)?<br />

7x30<br />

= m(&z(:) %)me’ 5 (i)Z(‘)Pl $;<br />

, /<br />

& w,z) = xB;(z)y<br />

3x30

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

Saved successfully!

Ooh no, something went wrong!