Logic Puzzle: The Burning Rope
You are equipped with two lengths of rope and some matches.
Your goal is by burning the rope(s), to identify when exactly 45 minutes has passed. All you know about the ropes:
- The ropes are of different length and you don't know how long they are.
- Each rope burns in precisely 1 hour.
- Each rope has a non-uniform density, meaning it is thicker at some points than others. Consequently, burning half a rope cannot be guaranteed to take 30 minutes.
Without Googling for the answer can you figure out the solution?
Comments
In fact, if you do a google search for burning rope riddle you will find many pages of results. The one you are thinking of is this page here The Burning Rope Problem which is dated 23/07/08. The google results go back much farther and many lack attribution.
The riddle was even placed in a digg comment on on 10/12/2007. Before you accuse someone of plagiarising I expect solid proof that the information is not public domain and that you know who owns the copyright.
I'd say Steve is placing emphasis on the fact that he wants to test people's intelligence rather than just their Googling skills.
Light one rope at both ends. When that one burns out, half an hour will have passed.
Now, cut the next rope in half, and light both ends of both halves. If both burn out at the same time, 45 minutes has passed. Otherwise, when the first of the halves of rope has burned out, split the next half in two, light the ends that are not yet burning, and continue to repeat this step ad infinitum.
Explanation:- You have one rope left, which has a value of 60, and here we'll say y = 60. Note that initially, the time remaining (15 mins = y/4) is a quarter of the time value of the remaining rope. Let's say when you cut the second rope in half (so you split it into time periods of x and y-x, where x<= y/2. Hence by burning both at both ends, the time required for each x/2 and (y-x)/2. If x = y/2, then they will both take y/4 mins to burn out (and 45 minutes has passed). Otherwise, after the first half has burned out (taking x/2 to do so), the second rope will now have a time value of (y-x)-x = y-2x. The time remaining until 45 mins is y/4-x/2. You can see that again, the remaining rope has a time value of 4 times the amount of time remaining until 45 mins. So, you can let y' = y-2x, and repeat the process ad infinitum.
Consequently, since at each step the remaining time is exactly a quarter of the time value of the remaining piece of rope (or half if it's burned at both ends), the process can be repeated until 45 minutes has indeed passed.
There is likely a better way, but I haven't come up with one yet.
Even if I hadn't edited it though, that essay question was from the professor that I had for Torts at U.K. I submit that I earned the right to post an essay question from him even without attribution due to the trauma and emtional distress of attending his class.
In the alternative, I'd argue that the post, even if unedited, was fair use since we were talking about law school-type hypotheticals. The conversation was for a nonprofit educational purpose.
Initially, light one rope on both ends while you light the other on only one end.
After 30 mins, the rope lit on both ends will have burned out, while the other rope will have 30 mins left.
If you now also light the remaining rope on the other, non-burning end, it will take another 15 mins to burn out.
30 + 15 = 45.
I continue to contend that my infinite solution is valid, though the amendment of burning from the middle instead of cutting is required. (i.e. burn one rope from both ends, after this is done, burn the second rope from the middle and both ends. When and if only one piece remains, burn that piece from the middle and both ends. Repeat this last step ad infinitum, until there is no rope left.).
However, I do not disagree that the usual solution is better.
Perhaps if it had been worded as "as close as possible to 45 minutes", with human limitations in mind, the "proper" solution would take priority. However, even then, both would probably be within seconds of 45 minutes.
Here's what you do, (spoilers) You light two ends of one rope and one end of the other, when the first rope has burned completely you then light the unlit end of the second rope, when that rope has been reduced to ash 45 minutes have elapsed. (spoilers)
@myself: Even though lackofcheese has the wrong solution, Infinite Steps is not equal to Infinity, didn't you ever take Calculus? Sums/Integrals, gosh!
To attain exactly 45 minutes with the "right" solution, it is required that you light the next bit of rope within zero time of the previous rope burning out. However, this is impossible given human limitations. It is irrelevant that you have 30 minutes to prepare - you still can't respond instantaneously. So, by your logic, both solutions are wrong.