This is so frustrating. I can't stop thinking about these puzzles. I was just playing a 2 hour game of l4d and was terrible because I was just thinking about that fucking light switch one the whole time.
For the first, I've realized it's hard to come up with a solution without knowing the algorithm the farmer is following. Does he always stay as close to you as possible? Or if he sees you running in a direction, will he assume you're headed for the other side in a straight line and head for the other end? Or are you just supposed to assume he could go anywhere? If so, there can't be a solution using any definite path, as he could always just place himself at your planned point of exit, from the beginning. So the solution may be some algorithm that will depend on where he goes, which would get complicated.
The prisoners. I may have somewhat of a solution which is probably inadequate.
Spoiler for Prisoners solution:
They consider time in segments of some number of days. The greater the number of days, the longer it will take, but it will be more likely that it will end up working eventually. I'll pretend it's a month, but it should probably be more than that.
If this is the first time the person has been to the bathroom with the light off when he entered, he leaves the light on for the next person.
Otherwise, the person leaves the light unchanged.
At the end of the month, the last person turns the light off.
This way, each month, if someone new has been to the bathroom, everyone who went after he did will know because they saw the light on. So each person just has to wait until they've witnessed the light on in 19 separate months. But this isn't a perfect solution. Not only would it take a really long time (19 months minimum), but it isn't guaranteed to work. Like if the warden chose to focus on the same group of 10 people for one month, then the next 10 the next month, and keep alternating, then neither group could be aware of the other being there.
EDIT: !!! This is getting so fucking complicated! I've realized that might not really work well unless someone near the beginning of the month turns the light on. Because if the person on the last day or so turns the light on, there will be hardly anyone to see it before it's turned off again. But there's no way to signal that the whole process should start over if the light isn't turned on early enough.... maybe each prisoner should turn the light on his first time in the bathroom with the light off, only if it's in the first few days of the month. Otherwise he should save his statement for a time he's chosen earlier in the month, so more people will see it. I suppose you could use math to come up with some span of days that will make it extremely likely that at least one person will witness all 19 switches being turned on... I don't feel like doing that now though.
And the coin one... I don't see how there can be a solution to that. No matter what you do to the coins, you can never know which ones are heads. I can't even think of some indirect way to do it. If you pick up more than half of them, you know that you have at least one heads and one tails. That's about as far as I can imagine knowing something that might seem unintuitive. I don't know where you could go from there though.
Originally Posted by Chimpertainment
"A farmer challenges an engineer, a physicist, and a mathematician to fence off the largest amount of area using the least amount of fence.
The engineer made his fence in a circle and said it was the most efficient.
The physicist made a long line and said that the length was infinite. Then he said that fencing half of the Earth was the best.
The mathematician laughed at the others and with his design, beat the others. What did he do?"
Don't do anything, say the fenced area is infinitely small but it's really the outside and everything outside of it (ie. all space) is being fenced off?
Bookmarks