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.

Oh, now 1 unde&and<br />

what<br />

mathematicians<br />

mean when they<br />

say something is<br />

“‘obvious,” “clear,”<br />

or “trivial.”<br />

8.5 HASHING 303<br />

If X and Y are independent, the random variable Xly will be essentially<br />

the same as X, regardless of the value of y, because Pr(X = x 1 Y = y ) is equal<br />

to Pr(X =x) by (8.5); that’s what independence means. But if X and Y are<br />

dependent, the random variables X/y and Xly’ need not resemble each other<br />

inanywaywheny#y’.<br />

If X takes only nonnegative integer values, we can decompose its pgf into<br />

a sum of conditional pgf’s with respect to any other random variable Y:<br />

Gx(z) = x WY=y)Gx,(z).<br />

YEYIf~l<br />

(8.91)<br />

This holds because the coefficient of zx on the left side is Pr(X =x), <strong>for</strong> all<br />

x E X(n), and on the right it is<br />

x Pr(Y=y)Pr(x=xIY=y) = t Pr(X=x and Y=y)<br />

YEytni YEYin)<br />

= Pr(X=x).<br />

For example, if X is the product of the spots on two fair dice and if Y is the<br />

sum of the spots, the pgf <strong>for</strong> X16 is<br />

Gx,6(z) = +z5 + $z8 + ;z9<br />

because the conditional probabilities <strong>for</strong> Y = 6 consist of five equally probable<br />

events { � m, � n, � m, � n, � m}. Equation (8.91) in this case<br />

reduces to<br />

Gx(z) = $x 2(z) + $x,3(z) + &Gx z,(z) + $x,5(z)<br />

j$x,dz) + $&T(Z) + j$x,a(z) + &Gx~9(4<br />

$%Io(z) + j$x,,, (~1 + &12(z),<br />

a <strong>for</strong>mula that is obvious once you understand it. (End of digression.)<br />

In the case of hashing, (8.91) tells us how to write down the pgf <strong>for</strong> probes<br />

in a successful search, if we let X = P and Y = K. For any fixed k between 1<br />

and n, the random variable PI k is defined as a sum of independent random<br />

variables X1 + . . . + Xk; this is (8.88). so it has the pgf<br />

Gp,k(Z) = (m-;+Z)k-‘Z.

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

Saved successfully!

Ooh no, something went wrong!