Markov chains and random walks · A long hallway · difficulty 4 of 5
Visiting both ends of the hall
A robot sits at spot 4 of a hallway with spots 0 to 10. Each second it moves one spot left or right at random (at an end it must step back inward). How many seconds on average until it has visited both ends?
Answer with an expected value. First lock in a gut guess with an 80% range, then solve it properly, then watch a simulation settle on the truth.
More markov chain and random walk puzzles
- Waiting for the ball · A game of catch
- Climbing with an edge · A winning streak
- From one spoke to another · A hub with spokes
- Playing until you're broke · A casino
- Rainy days in the long run · Weather
- The spider heads home · A spider's web
All markov chain and random walk puzzles · All puzzles · Market making game