Wednesday, March 17, 2010

The Prisoner, the Liar, and the Truth

The door that leads to the electric chair in the Prison for Creative and Unusual Punishment is located in a depressing, windowless basement hallway near the back.  It just so happens that it is right next to an identical door that leads to an unguarded fire exit. 

One day the warden was bringing a prisoner to be executed, but was feeling sorry for him.  The prisoner had been convicted on dubious charges and DNA evidence had been unearthed that might have exonerated him, but the court threw it out.  So the warden wanted to give the prisoner one more chance at freedom.  There were two guards with them and the warden whispered in their ears, out of earshot of the prisoner.  The warden instructed one to tell nothing but lies when asked a yes-or-no question and the other to tell only the truth when asked a yes-or-no question.  Otherwise they were to remain silent.  The prisoner couldn't tell which was the liar and which was the truth-teller. 

The warden then told the prisoner that he could ask one yes-or-no question to one of the guards.  If, from the answer, he could pick the correct door to freedom, the guards would look the other way. 

What question should the prisoner ask?






Solution:
Point to a door and say to one guard, "If I asked the other guard if this were the door to freedom, would he say yes?"  The answer will be a lie no matter whom you ask.  Even the truth-teller, when speaking on behalf of the liar, would be forced to give a false answer.  So if the answer is yes, choose the other door.  If the answer is no, choose the door you pointed to. 

6 comments:

  1. I would just walk into the room with the electric chair. It would actually be fun to go to the electric chair. I can't until I get my chance to ride the lightning in the electric chair.

    ReplyDelete
  2. this is a variation of the heaven and hell door riddle...and this version is harder to make sense of :S what he's supposed to ask is 'what would the other guard say if I asked him which door he was guarding'
    a simpler option altogether would be to just ask a simple question like 'am i a man' or ask a question about the door itself like 'is this door white' and whichever one lies about whats right in front of you is obviously guarding the bad room SIMPLE

    ReplyDelete
  3. Lucy, you are wrong, because none of the guards are guarding an specific door.

    ReplyDelete
  4. Your Blog is awesome to get info, please if you want some business leads so
    MCA Leads

    ReplyDelete