|
|
|
|
|
|
|
|
CTK Exchange
Dominic

guest
|
Aug-31-09, 07:24 PM (EST) |
|
"One Lane Highway Question"
|
Found this puzzle on XKCD, attached is my solution. One-lane Highway You have N cars that are all traveling the same direction on an infinitely long one-lane highway. Unfortunately, they are all going different speeds, and cannot pass each other. Eventually the cars will clump up in one or more traffic jams. In terms of N, what is the expected number of clumps of cars? My Solution We have N cars, the expected location of the slowest car is in the middle thus forming one group from the back up to the mid point (we have at least 1 group), consider all the cars ahead of this group as the new subset M, perform the same operation and we'll have another group that goes up to the 3/4 N mark from the back for 2 groups. We can do this as far as till the next subset X is at least 1 car long. So for N starting cars we'd expect X number of clumps where 2^X = N giving X = lnN/ln2. (This makes more sense for N being a large number and doesn't make sense at all for N = 2 as in that situation we'd expect 1.5 groups where as my formula would give 1) -- Dominic Leung 31 Aug 2009 |
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
 |
|
 |
alexb
Charter Member
2434 posts |
Aug-31-09, 08:54 PM (EST) |
 |
3. "RE: One Lane Highway Question"
In response to message #2
|
What you call "clumps" is more often is designated as "clusters". The relation 2X = N that you found is quite often referred to as a "power law". The book I mentioned describes a huge number of physical and mathematical phenomena that obeys such laws. For example , consider a big square grid and fill randomly the grid squares with color. A cluster is a connected component of the set of the filled squares. Then the number n(s) of clusters that consist of s squares is proportional to s-t, where t = 187/91; believe it or not.In particular, you have such power laws every time there is self-similarity - exactly of the sort you played on. N/2 cars behave similarly to N cars so that ... Fractals grew out of these ideas. |
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
|

You may be curious to have a look at the old CTK Exchange archive. Please do not post there.
Copyright © 1996-2018 Alexander Bogomolny
|
|