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.

416 DISCRETE PROBABILITY<br />

28 What is the average length of the coin-flipping game (8.78)<br />

a given that Alice wins?<br />

b given that Bill wins?<br />

29 Alice, Bill, and Computer flip a fair coin until one of the respective<br />

patterns A = HHTH, B := HTHH, or C = THHH appears <strong>for</strong> the first time.<br />

(If only two of these patterns were involved, we know from (8.82) that A<br />

would probably beat B, that B would probably beat C, and that C would<br />

probably beat A; but all three patterns are simultaneously in the game.)<br />

What are each player’s chances of winning?<br />

30 The text considers three kinds of variances associated with successful<br />

search in a hash table. Actually there are two more: We can consider the<br />

average (over k) of the variances (over hl , . . . , h,) of P( hr , . . . , h,; k); and<br />

we can consider the variance (over k) of the averages (over hl, . . . , h,,).<br />

Evaluate these quantities.<br />

31 An apple is located at vertex A of pentagon ABCDE, and a worm is<br />

located two vertices away, at C. Every day the worm crawls with equal<br />

probability to one of the two adjacent vertices. Thus after one day the<br />

worm is at vertex B with probability i and at vertex D with probability i.<br />

After two days, the worm might be back at C again, because it has no<br />

memory of previous positions. When it reaches vertex A, it stops to dine.<br />

a What are the mean and variance of the number of days until dinner?<br />

b Let p be the probability that the number of days is 100 or more.<br />

What does Chebyshev’s inequality say about p?<br />

C What do the tail inequalities (exercise 12) tell us about p?<br />

32 Alice and Bill are in t:he military, stationed in one of the five states<br />

Kansas, Nebraska, Missouri, Oklahoma, or Colorado. Initially Alice is in<br />

Nebraska and Bill is in Oklahoma. Every month each person is reassigned<br />

to an adjacent state, each adjacent state being equally likely. (Here’s a<br />

diagram of the adjacencies:<br />

Schrtidinger’s worm.<br />

The initial states are circled.) For example, Alice is restationed after the Definitely a finitefirst<br />

month to Colorado., Kansas, or Missouri, each with probability l/3. state situation.<br />

Find the mean and variance of the number of months it takes Alice and<br />

Bill to find each other. (You may wish to enlist a <strong>computer</strong>’s help.)

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

Saved successfully!

Ooh no, something went wrong!