随机走立方体到对角点的期望步数
Given a cube
题目详情
Given a cube, you can jump from one vertex to a neighboring vertex with equal probability. Assume you start from a certain vertex (does not matter which one). What is the expected number of jumps to reach the opposite vertex?
解析
按与目标的距离分层:距离 0、1、2、3。设期望为 。
从距离 3 必到距离 2:。
从距离 2:以 到距离 1,以 回到距离 3:
从距离 1:以 到距离 0,以 到距离 2:
解得 ,因此