Dr Robert P. Batzinger, Payap University
10 March 2016
A classic problem in probability
If a stick of length \( L \) is broken into three pieces
\( (L1, L2, L3) \)
what is the probability that the three pieces will construct a triangle?
\[ L = \sum_{i=1}^3 L_i \]
\[ L1 \lt L2 + L3\\ L2 \lt L1 + L3\\ L3 \lt L1 + L2\\ \]
\[ max(L1,L2,L3) \lt {L\over 2} \]
ntries = 10000
cuts= cbind(runif(ntries,0,1),
runif(ntries,0,1))
L1 = cuts[,1] # 1st cut
L2 = (1 - L1) * cuts[,2] # 2nd cut
L3 = 1 - (L1 + L12) # remainder
stickfrags = cbind(L1,L2,L3)
Results of 5 runs
Tri NonTri
1 1953 8047
2 1921 8079
3 1915 8085
4 1917 8083
5 2002 7998