跳到主要内容
← 返回题库
免费概率中等

Breaking a Stick into a Triangle II

考察公司

题目

A stick of length 11 is broken at a point chosen uniformly at random. Then the longer of the two pieces is broken again, at a point chosen uniformly at random along it. What is the probability that the three pieces can form a triangle?

解析

先自己试一试,卡住了再打开提示。

提示 1

As in part I, three pieces adding up to 11 form a triangle exactly when every piece is shorter than 12\tfrac12.

提示 2

Let LL be the length of the longer piece after the first break. It is uniform on [12,1][\tfrac12, 1]. For a fixed LL, where must the second break land?

查看解析

Step 1: The condition. As in part I, three pieces that add up to 11 form a triangle exactly when every piece is shorter than 12\tfrac12.

Step 2: The first break. Break at UU, uniform on [0,1][0, 1]. The longer piece has length L=max⁡(U,1−U)L = \max(U, 1 - U), which is uniform on [12,1][\tfrac12, 1]. The shorter piece, 1−L1 - L, is already at most 12\tfrac12, so it never causes a problem.

Step 3: The second break, for a fixed LL. Break the longer piece at a distance VV from one end, with VV uniform on [0,L][0, L]. The two new pieces are VV and L−VL - V. Both must be shorter than 12\tfrac12:

V<12andL−V<12  ⟺  L−12<V<12.V < \tfrac12 \quad\text{and}\quad L - V < \tfrac12 \iff L - \tfrac12 < V < \tfrac12.

That window has length 12−(L−12)=1−L\tfrac12 - (L - \tfrac12) = 1 - L, out of a total length LL, so

P(triangle∣L)=1−LL=1L−1.P(\text{triangle} \mid L) = \frac{1 - L}{L} = \frac{1}{L} - 1.

Top: the first break leaves a shorter piece 1 − L and a longer piece L. Bottom: on the longer piece, the second break must land between L − ½ and ½, a window of length 1 − L.

Step 4: Average over LL. LL is uniform on [12,1][\tfrac12, 1], so its density is 22 there:

P(triangle)=∫1/212(1L−1)dL=2[ln⁡L−L]1/21=2(−1−ln⁡12+12)=2ln⁡2−1.P(\text{triangle}) = \int_{1/2}^{1} 2\left(\frac{1}{L} - 1\right) dL = 2\Big[\ln L - L\Big]_{1/2}^{1} = 2\left(-1 - \ln\tfrac12 + \tfrac12\right) = 2\ln 2 - 1.

In the picture below, the curve is the chance of a triangle for each LL. The answer is its average height over LL from 12\tfrac12 to 11: the shaded area divided by the width 12\tfrac12.

The curve 1/L − 1 falls from 1 at L = ½ to 0 at L = 1; its average height is about 0.386.

Answer: 2ln⁡2−1≈0.386292\ln 2 - 1 \approx 0.38629.

Why it beats part I (14\tfrac14): breaking the longer piece avoids the worst case, where both breaks land on the same half and leave one piece longer than 12\tfrac12.