All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Probability
Parking Cars (Posted on 2004-07-01) Difficulty: 5 of 5
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?

No Solution Yet Submitted by SilverKnight    
Rating: 4.0000 (2 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Next step | Comment 3 of 14 |
2 <= L < 3, F(L) = (3L-4)/L

There are only two possibilities at this length: one car or two. The probabiliy of being able to park two cars is 2(L-2)/L because the first car must be near one end. The probability of parking two cars is then 1 - 2(L-2)/L = (4-L)/L.
The expected number of cars is then 2*(2(L-2)/L)+1*(4-L)/L = (3L-4)/L.

As the road gets longer, there are other possible numbers of cars. Each has its own probability. This method may get out of hand.

-Jer
  Posted by Jer on 2004-07-01 14:50:39
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (2)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2017 by Animus Pactum Consulting. All rights reserved. Privacy Information