返回题库

醉蚂蚁走立方体

Drunk Ant

专题
Probability / 概率
难度
L6

题目详情

一只蚂蚁站在立方体某个顶点,只能沿棱边行走。它每次从当前顶点等概率选择一条棱走到相邻顶点。

问:到达对角顶点(相距最远的顶点)的期望走过棱边数是多少?

提示:把顶点按“离目标的距离层级”合并成若干等价状态。

An ant is standing on one corner of a cube & can only walk on the edges. The ant is drunk and from any corner, it moves randomly by choosing any edge! What is the expected number of edges the ant travels, to reach the opposite corner?

Hint

Try to find the equivalent vertices for the distance yet to travel. This should give 44 equivalent merged vertices, with 11st being the start & the 44th being the destination.

解析

答案是 10

把顶点分成 4 个等价状态:

  • S0S_0:起点
  • S1S_1:与起点相邻的 3 个点
  • S2S_2:与终点相邻的 3 个点
  • S3S_3:终点

设从状态 SiS_i 到达终点的期望步数为 EiE_i,写出递推方程并求解,可得 E0=10E_0=10


Original Explanation

1010

Solution

We can define 44 equivalent states, based on the corner the Ant is at:

  1. Starting corner.
  2. Corner adjacent to the starting corner.
  3. Corner that shares an edge with the opposite corner.
  4. The opposite corner.

Plot

We can represent the expected number of steps EiE_i from each state as follows:

  1. E0=1+13(E1+E1+E1)E_0 = 1 + \dfrac{1}{3}(E_1 + E_1 + E_1)

  2. E1=1+13(E0+E2+E2)E_1 = 1 + \dfrac{1}{3} (E_0 + E_2 + E_2)

  3. E2=1+13(E1+E1+E3)E_2 = 1 + \dfrac{1}{3}(E_1 + E_1 + E_3)

  4. E3=0E_3 = 0 (already reached the destination)

Solving this we find E0=10E_0 = 10


Calculations:

    E0=1+E1  &  E2=1+2/3E1\implies E_0 = 1 + E_1 ~~\&~~ E_2 = 1 + 2/3 \cdot E_1

Substitute E0E_0 and E2E_2 in the middle equation.

    3E1=3+(1+E1)+2(1+2/3E1)\implies 3E_1 = 3 + (1 + E_1) + 2 (1 + 2/3 E_1)

    3E1=4+E1+2+4/3E1\implies 3E_1 = 4 + E_1 + 2 + 4/3 E_1

    2/3E1=6    E1=9    E0=10\implies 2/3 E_1 = 6 \implies E_1=9 \implies E_0 = 10