There is an east-west street of length L units. And we park cars of unit length along the north side until we can't place any more cars. Each car is placed randomly (uniformly).
What is the expected number of cars that can be parked (as a function of L)?
__________________________
I'll start you off...
For 0 <= L < 1, F(L) = 0
For 1 <= L < 2, F(L) = 1
Okay... now the easy ones are out of the way, can you describe the function for L>=2?
(In reply to
Different? by Gamer)
For L = 2.9, why would it be hard to park only 2 cars? Certainly no more than 2 will fit. Simulation shows that 95% of the time two would fit, and the other 5% of the time only one. Here's a finer breakdown between L=1 and L=3:
1.00 1.00
1.10 1.00
1.20 1.00
1.30 1.00
1.40 1.00
1.50 1.00
1.60 1.00
1.70 1.00
1.80 1.00
1.90 1.00
2.00 1.00
2.10 1.19
2.20 1.34
2.30 1.46
2.40 1.57
2.50 1.66
2.60 1.76
2.70 1.82
2.80 1.89
2.90 1.95
3.00 2.00
Note that a length of 3 is assured of fitting two cars, and there's zero probability of fitting 3. The latter would require that the first car to arrive would place its front exactly at the beginning of the curb, exacty 1/3 of the way back or exactly 2/3 of the way back, which, being a finite number of points on a line, add to zero probability.
Edited on July 2, 2004, 12:45 am
|
Posted by Charlie
on 2004-07-02 00:34:05 |