变色球:全同色所需步数的期望
Color Balls
题目详情
盒子里最初有 个球,颜色两两不同。不断重复以下步骤:
- 随机选出一对球(有序),
- 把第一个球重新涂成第二个球的颜色,
- 把两球放回盒子。
问:直到 个球都变成同一种颜色为止,所需步骤数的期望是多少?(很难)
A box initially contains balls, each of a different color. Repeatedly, you:
- Randomly select a pair of balls (order matters),
- Repaint the first ball to match the second ball’s color,
- Return both balls to the box.
What is the expected number of steps until all balls are the same color? (Very difficult)
解析
记 为达到全同色的步数。由对称性,最终颜色等概率落在任意一种初始颜色上。用吸收马尔可夫链(例如跟踪某“候选颜色”的球数)的分析可得到
Original Explanation
Let be the number of steps until all balls have the same color. By symmetry, each color is equally likely to be the final color, and the analysis (via absorbing Markov chain arguments on the number of balls of a “candidate” color) leads to the result: