www.ddhw.com I think what matters is the length of the sequence, not the specific string of heads or tails. We can just assume the sequence in question is 1,1,...,1, with n 1's. At any time, we can count the number K of consecutive 1's, going back from the lastest toss. For example, after 5 tosses, the sequcence of head/tails is 1 -1 1 1 1, then K=3. Specifically, if the lastest toss is a -1, then K = 0. Let A_K be the expected number of more tosses needed to end the game. We have the following system of equations: A_0 = 1/2(A_0+A_1)+1 A_1= 1/2(A_0+A_2) +1 ....www.ddhw.com A_{n-2} = 1/2(A_0+A_{n-1})+1, A_{n-1} = 1/2(A_0+A_n) +1 A_n=0 n+1 unkowns, n+1 equations, and the final answer is 1/2(A_0+A_1)+1
www.ddhw.com
本贴由[QL]最后编辑于:2006-3-8 22:45:14 |