The Hardest Logic Puzzle Ever
qntm.org
qntm.org
http://justinpombrio.net/tell/prisoner-lightbulb.html
EDIT: Also, for anyone stuck on the three gods puzzle, the three sisters puzzle is a good stepping stone:
[1] - http://www.cut-the-knot.org/Probability/LightBulbs.shtml
“I reserve the right to flip the light on or off between interrogations up to 12 times in total.”
Maybe it's poorly worded?
For the Hard problem, you're on your own.
The wording is very careful :-)
> The wording is very careful :-)
Do you mean he can flip the switch 12 times in total between all interrogations? Or that between every interrogation he can flip the switch up to 12 times.
That's what I mean by poorly worded.
It wasn't very clear.
>> You mean the Easy++ problem? The solution isn't very different from the solution to Easy (i.e. the original problem); it just takes longer to run.
Btw what's the run-time on your easy++ solution? - I think the run-time on the solution to the regular problem with a single counter is around ~26 years, so all your prisoners will die before they can get released unless you're doing something more clever than the basic solution.
Also I'm not sure I understand the difference between your Easy and Hard problems? I assume the prisoner who is not interrogated with the other inmates just estimates the run-time for their solution and waits (which I think is part of the original problem anyway ? )
"in which the words for yes and no are da and ja, in some order. You do not know which word means which."
But in both examples, there's one word for "yes" and one word for "no" and in both examples, the asker doesn't know which one is which.
> It could be that some god gets asked more than one question (and hence that some god is not asked any question at all).
Make up your mind.
"Each of the 3 questions must be unique and only asked to a single god, and each god can receive 0, 1, 2 or all 3 questions out of the 3 unique questions".
In other words, don't create 1 question and ask it to multiple gods. But if you create 2 or 3 different questions, it's fine to ask them to the same god (forgoing to opportunity to ask them to another god).
Thanks everyone for pointing out I was wrong.