Mathematics (JEE)HardGATE CS · ICPC

A particle starts at position 2 on the integers 0 to 5. Each step it moves one unit left or right with probability 1/2 each, independently. The walk stops on reaching 0 or 5. What is the expected number of steps taken?

  1. A. 3
  2. B. 6
  3. C. 8
  4. D. 12

Correct answer: B. 6

For a symmetric walk on {0, ..., N} started at i, the expected absorption time is i(N - i). Here i = 2 and N = 5, so the expectation is 2 x 3 = 6.

More Permutations, Combinations and Probability questions

Exams that ask this topic