1 Leftward Jump
题目
Seven stones lie in a row, numbered to from left to right. A frog starts on stone . Each hop takes it to a stone it hasn't visited yet, chosen uniformly at random from the ones remaining, until it has visited every stone.
What is the probability that exactly one of its hops is to the left?
解析
先自己试一试,卡住了再打开提示。
提示 1
Every order of visiting stones is equally likely. Why? Work out the probability of one specific order, then of another.
提示 2
A route with exactly one left hop goes up, drops once, then goes up again. Build such a route by asking each stone whether it is in the first or the second increasing group. How many ways is that, and which of them give no left hop at all?
查看解析
Step 1: Every visiting order is equally likely. The frog visits stones in some order, and there are possible orders. Take one, say . Its probability is the product of the chances of each choice:
- 1st hop: unvisited stones, it picks : chance ;
- 2nd hop: left, it picks : chance ;
- then , , and finally .
So this route has probability . Any other order has the same number of choices at each hop (), so it also has probability . All orders are equally likely, and
Step 2: What one left hop looks like. The hop from stone always goes right. After that, a hop goes left exactly when the next stone is smaller than the current one. So a route with exactly one left hop goes up, drops once, then goes up again, such as
where is the only left hop.
Step 3: Build these routes by splitting the stones into two groups. Ask each of the stones one question: are you in the first group or the second group? Then visit the first group in increasing order, followed by the second group in increasing order.
- Each stone has answers and there are stones, so there are ways to split.
- For example, first group gives the route .
- The groups don't need to be the same size, and either one can be empty.
Every route with exactly one left hop is made this way exactly once: its first group is the stones before the drop. So nothing is counted twice, and we only need to remove the splits that give no drop at all.
Step 4: Remove the splits with no drop. A split gives no drop when the first group is just the smallest stones, because then the route is with no left hop:
That is splits. For example, first group gives : no left hop. In every other split, some stone in the second group is smaller than the largest stone in the first group, so the route drops exactly once.
So orders have exactly one left hop.
Check with 3 stones (): there are splits, and give no drop (, , , ). That leaves routes: , then , then and . Listing all orders directly agrees: has no left hop and has two.
Answer:
In general, with stones the probability is .