In the image on the right, there is a river running between 2 banks (marked in green). There are 6 islands (marked in brown) in the river, and these land masses are connected by 13 bridges (marked in black). The inhabitants can only use these bridges to get across the river (no swimming, boats, etc. are allowed).
One day, an extremely heavy storm destroys at least one of the bridges, which prevents the inhabitants from crossing directly between the connected land masses. Out of the 2 1 3 − 1 = 8 1 9 1 cases where at least one bridge is destroyed, in how many cases can the inhabitants still cross between the two banks?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The 1960 board game Bridg-It is played on a similar diagram.
Like all connection games (including the more famous Hex), no ties are possible; one side connecting to the other necessarily means the other side loses.
Nice argument.
Unfortunately, the assumptions of "destroys at least one of the bridges (with each state being equally likely)" and "the probability of each bridge being destroyed equal to 1/2" are contradictory. IE Under the first assumption, the probability that a particular bridge is destroyed is 2 1 3 − 1 2 1 2 = 2 1 .
Can you help fix up the problem?
Log in to reply
Oh, I should've clarified.
The probability 2 1 is the probability of all the cases, including the case where every bridge is intact. That's why I subtracted 1 from the denominator and numerator at the end.
Even though the problem originally said it excludes the case where every bridge is intact, I just added it to the calculation so that the problem is "solvable", and then subtracted it afterwards.
I hope that clears up!
Log in to reply
Unfortunately, what you are thinking in your head isn't translated down to what you have written. It might be better to ask directly "In the 2 1 3 − 1 cases where at least one bridge is destroyed, in how many cases can we still reach the other bank?". This avoids the delicate definitions/assumptions in setting up of the probability distribution.
Log in to reply
@Calvin Lin – Hmm but I can't change the solution though.
Log in to reply
@Boi (보이) – K, I've updated the problem + answer. Can you review it? If it looks good, please update the solution too.
Log in to reply
@Calvin Lin – Updated the solution, and the question looks good! Thanks! 👍
Log in to reply
@Boi (보이) – I really enjoyed this question.
I am not certain if there is a way to generalize the problem (esp to a scenario that isn't self-dual) and still have a simple calculation.
Log in to reply
@Calvin Lin – Me neither, I had once thought about generalizing the problem a whole couple days, but I couldn't figure it out.
Still, I like this problem! My dad first gave this problem to me, and I'm glad he did. :D
Log in to reply
@Boi (보이) – Great problem, thanks for sharing it. Let me see if I can feature it in a coming week :)
Lets try to generalise this question.
As we can clearly see there are
No. of Islands = N x (N+1)
No. of bridges = N^2 +(N+1)^2
here N = 2, but it will be hard to calculate for this so will try starting from N = 0,1
Case 1:
N = 0,
No. of islands = 0 x 1 = 0
No. of Bridges = 0^2 + 1^2 = 1
Possible Combinations = 2^1 = 2 [ where 2 = No. of banks and powered by no. of bridges i.e., 1 in this case]
After storm there will be 50% chance that inhabitant can cross the banks i.e, 1 in this case
But according to question at least 1 bridge should be destroyed, in this there is only 1 bridge.
Hence 0 cases to cross the banks.
Case 2:
N = 1
No. of islands = 1 x 2 = 2
No. of Bridges = 1^2 + 2^2 = 5
Possible Combinations = 2^5 = 32
[Explanation of 32 possible combinations:
When 0 of 5 bridges are damaged = 0 C 5 = 1
When 1 of 5 bridges are damaged = 1 C 5 = 5
When 2 of 5 bridges are damaged = 2 C 5 = 10
When 3 of 5 bridges are damaged = 3 C 5 = 10
When 4 of 5 bridges are damaged = 4 C 5 = 5
When 5 of 5 bridges are damaged = 5 C 5 = 1
Total = 32, 1st is the combination where no bridge is destroyed ]
After storm there will be 50% chance that inhabitant can cross the banks i.e, 16 in this case
But according to question at least 1 bridge should be destroyed, in this there is only 1 case where No bridge will be damaged
Hence 15 cases to cross the banks.
Case 2:
N = 2
No. of islands = 2 x 3 = 2
No. of Bridges = 2^2 + 3^2 = 13
Possible Combinations = 2^13 = 8192
After storm there will be 50% chance that inhabitant can cross the banks i.e, 4096 in this case
But according to question at least 1 bridge should be destroyed, in this there is only 1 case where No bridge will be damaged
Hence 4095 cases to cross the banks.
But in these solutions, the topology of the network is not taken to account. You just have to destroy all the 3 bridges on either bank which gives 2*2^10 - 2^7 (all bridges on both sides are destroyed) = 1920 cases where crossings from 1 side to the other are not possible. In all the other cases,( =8191-1920) crossings should be possible.
Problem Loading...
Note Loading...
Set Loading...
Above diagram is a reconstruct of the original problem.
Assume a ship is going through the bridges. From one blue side to another.
But the bridges are too low for the ship to go through, so the ship can only go through the broken ones.
Now you'll notice that the yellow paths look like the same as the black ones. Only 9 0 ∘ rotated.
If people can cross the bridges, then the ship won't be able to cross. If people can't, the ship can. (Do you see why?)
Now we will try to create a bijection between people crossing and ships crossing.
Toggle all the yellow-paths, and then rotate it by 9 0 ∘ counterclockwise.
Then let's call it the counterpart of the bridge-path.
For every bridge-path that doesn't allow people to cross from one side to another, there is a counterpart that allows them, except for the case where every bridge is destroyed -- which means one case that doesn't allow people to cross is left out with no counterpart.
Therefore, the number of cases where people can't cross is 1 greater than the number of cases where people can.
There are total of 2 1 3 − 1 cases, and if we say that the number of cases where people can cross from one side to another is a ,
a + ( a + 1 ) = 2 1 3 − 1
Therefore a = 2 1 2 − 1 = 4 0 9 5 .