What Single Question Reveals the Door to Freedom?

  • Context: High School 
  • Thread starter Thread starter kent davidge
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around a logic puzzle involving two deputies guarding two doors, one leading to freedom and the other to death. Participants explore various questions that could be asked to determine which door leads to freedom, focusing on the constraints of asking only one question to one deputy. The scope includes reasoning, problem-solving strategies, and logical deductions.

Discussion Character

  • Exploratory
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant suggests asking a multiple-choice question to determine which door leads to freedom, but others point out that this does not comply with the requirement of asking only one question.
  • Some participants emphasize the need to ask a question that reveals the identity of the truth-teller and the liar, suggesting that the question should be about the guards themselves.
  • Another participant proposes a specific question based on the guards' responses to identify the door to freedom, referencing a solution found on Wikipedia.
  • Several participants discuss the implications of the guards knowing each other's truthfulness and how that affects the formulation of the question.
  • Hints are provided about constructing a yes-or-no question that can be answered consistently regardless of which guard is asked.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best question to ask. There are multiple competing views on how to approach the problem, with some advocating for specific formulations while others challenge those suggestions.

Contextual Notes

Some participants note that the puzzle is well-known and has been discussed in various contexts, indicating that there may be established solutions that are not fully explored in this thread.

Who May Find This Useful

Readers interested in logic puzzles, problem-solving strategies, and mathematical reasoning may find this discussion engaging and informative.

kent davidge
Messages
931
Reaction score
56
I saw this problem in Wikipedia in my native language. The problem goes as follows

You are detained and there are two doors in front of you, one leads to death and the other to freedom. Each door is guarded by one deputy. One of the deputies always makes false statements while the other always makes true statements.

You can ask just one question to just one of the deputies (in order to know what door is the one you want to go through). What should you ask?I did the following: as one deputy will always make false statements and the other always true statements, I can ask anyone out to choose one of these options:

(a) I'm a chicken; this door leads to death.
(b) I'm a chicken; this door leads to freedom.
(c) I'm a human; this door leads to death.
(d) I'm a human; this door leads to freedom.

I choose anyone deputy to ask this question and if he chooses (a) or (b) then it's the liar, therefore if he chooses, say, (a) we know that the door leads to freedom... the same reasoning holds for the two bottom options... and in this way I can know what door leads to freedom and what leads to death.

Does this solution sounds logic?
 
Physics news on Phys.org
The four options you have are not one question, they are a multiple choice among four statements. If you form these as questions, you will be asking four questions and not one as you are required to do. Try another approach.
 
As @kuruman has said the a thru d choices are yours to make, pick one and then try them against the two deputies to see what door to select.
 
It's meant to be one question in the sense that I ask him "please, choose one alternative out of these four".. but yea
jedishrfu said:
pick one and then try them against the two deputies to see what door to select.
if one does that and one gets "I'm a chicken; this door leads to death" one concludes what is the guarded door.
 
kent davidge said:
Does this solution sounds logic?

As has already been noted by kuruman you should ask just one question and not four. Now, to give you a hint about the solution try two things: first, it is not meaningful to just ask the question directly - as you don't know who is telling the truth and who's not. This gives a hint that you should ask a question that reveals who is telling the truth so you have to concentrate on a question regarding the guards themselves. Second, think in terms of reversing answers.
 
  • Like
Likes   Reactions: kent davidge and jedishrfu
kent davidge said:
It's meant to be one question in the sense that I ask him "please, choose one alternative out of these four".. but yea

if one does that and one gets "I'm a chicken; this door leads to death" one concludes what is the guarded door.

You might like this:

 
  • Like
Likes   Reactions: Stephen Tashi and kent davidge
PeroK said:
You might like this:


Cool
QuantumQuest said:
you have to concentrate on a question regarding the guards themselves. Second, think in terms of reversing answers.
Maybe a question that I know the answer a priori so that depending on the answer I know who is/is not the liar, and that same answer should also imply the identity of the doors...
 
kent davidge said:
Cool

Maybe a question that I know the answer a priori so that depending on the answer I know who is/is not the liar, and that same answer should also imply the identity of the doors...
The question as you quote it has been spoiled by assigning a guard to a door, allowing simple questions about known facts to be used to identify the liar and the door.

The question needs either only one guard or the guards to be dissociated from the doors in order to prevent this.

In that case, you can easily establish who is the liar with one question, but that leaves you still not knowing which door is which.
 
  • Like
Likes   Reactions: kent davidge
PeroK said:
The question needs either only one guard or the guards to be dissociated from the doors in order to prevent this.
That is as it should be. Here is a hint to think about. It is also assumed that the deputies have worked together long enough to know whether the other guy is a liar or a truth-teller.
 
  • #10
Just ask either one of them
"If I were to ask you if this is the door to freedom, would you say yes?"

If it's the door to freedom, both will say yes and it it's not, both will say no.
 
  • Like
Likes   Reactions: jedishrfu
  • #11
kent davidge said:
Maybe a question that I know the answer a priori so that depending on the answer I know who is/is not the liar, and that same answer should also imply the identity of the doors...

To help further towards the solution I know - I don't know if there are other solutions, one more hint - also take note of the hint of @kuruman in post #9 because this is a crucial assumption in my solution too: make use of some conditional. This is meant to be asked to one guard, even though you don't know who tells the truth and who is not. If you combine this with my first hint in post #5 it should be easy enough to find the appropriate question. Also the second hint there guides to the formulation of this question.
 
  • #12
The answer according to wikipedia https://pt.wikipedia.org/wiki/Lógica is

(free translation)

"Ask to anyone of them: what door would you partner point out as being the door to freedom?

Explanation: the liar would point out the door of death as being the door that his partner would say is the door of freedom, because it's a lie on the affirmation of the truthteller. And the truthteller, knowing that his partern always lie, would say that he would point out the door of death as being the door of freedom.

Conclusion: either deputy would point out the door of death as being the door that his partner would say is the door of freedom. Therefore, you know you should walk through the other door."I guess this is the kind of question @kuruman and @QuantumQuest were thinking about.
 
  • #13
kent davidge said:
I guess this is the kind of question @kuruman and @QuantumQuest were thinking about.
You guessed correctly, in my case anyway.
 
  • Like
Likes   Reactions: kent davidge
  • #14
kent davidge said:
The answer according to wikipedia https://pt.wikipedia.org/wiki/Lógica is

(free translation)

"Ask to anyone of them: what door would you partner point out as being the door to freedom?

Explanation: the liar would point out the door of death as being the door that his partner would say is the door of freedom, because it's a lie on the affirmation of the truthteller. And the truthteller, knowing that his partern always lie, would say that he would point out the door of death as being the door of freedom.

Conclusion: either deputy would point out the door of death as being the door that his partner would say is the door of freedom. Therefore, you know you should walk through the other door."

I have not really seen Wikipedia answer but this is a puzzle I have solved about thirty five years ago. It is a well known puzzle - especially in the math world, and if you see my hints indeed this is the solution that I hint towards too. That's why I told you to ask some "if" regarding guards themselves and reverse answer ;)
 
  • Like
Likes   Reactions: kent davidge
  • #15
QuantumQuest said:
I have solved about thirty five years ago
Wow, a lot of time
 
  • #16
kent davidge said:
Wow, a lot of time
Not really. I solved it about 60 years ago. This is a VERY old logic/linguistic puzzle. See post #10.
 
  • Like
Likes   Reactions: QuantumQuest
  • #17
phinds said:
Not really. I solved it about 60 years ago. This is a VERY old logic/linguistic puzzle. See post #10.

Hey I'm not that old to know that ;)
 
  • #18
Hint1: You can ask a single yes-or-no question that embeds your question about the door inside a question about the guard.
Hint2: You don't care which guard is which; just which door is which.
Hint3: You can construct the question so that the answer is the same regardless of which guard is asked.

Answer:
You ask either guard, "if I were to ask you, 'does the door you're guarding lead to freedom', would you say yes?"
If the guard says Yes" you walk out that door; if he says "No", you exit by the other door.
Explanation:
You don't simply ask the guard about the door; you instead ask what he would say if asked about the door. That way, you get either a lie about a lie, which comes out as the truth, or the truth about the truth, which also comes out as the truth (just as either a double negative or a double affirmative is an affirmative).

If it's the good door:
the truth teller says "Yes" -- he knows that he would not lie and say "No" if asked if it was the good door, so he tells the truth about that and says "Yes".
the liar also says "Yes" -- he knows that he would lie and say "No" if asked if it was the good door, so he lies about that and says "Yes".

If it's the bad door:
the truth teller says "No" -- he knows that he would not lie and say "Yes" if asked if it was the good door, so he tells the truth about that and says "No".
the liar also says "No" -- he knows that he would lie and say "Yes" if asked if it was the good door, so he lies and about that and says "No".

There are other ways to formulate the question; all of them require nesting so that the liar property is invoked an even number of times.
 
Last edited:
  • Like
Likes   Reactions: kent davidge
  • #19
sysprog said:
Hint1: You can ask a single yes-or-no question ...
I take it you didn't read post #10
 
  • #20
phinds said:
I take it you didn't read post #10
You're right -- you said the same thing -- and more succinctly.
 
  • #21
sysprog said:
Hint1: You can ask a single yes-or-no question that embeds your question about the door inside a question about the guard.
Hint2: You don't care which guard is which; just which door is which.
Hint3: You can construct the question so that the answer is the same regardless of which guard is asked.

Answer:
You ask either guard, "if I were to ask you, 'does the door you're guarding lead to freedom', would you say yes?"
If the guard says Yes" you walk out that door; if he says "No", you exit by the other door.
Explanation:
You don't simply ask the guard about the door; you instead ask what he would say if asked about the door. That way, you get either a lie about a lie, which comes out as the truth, or the truth about the truth, which also comes out as the truth (just as either a double negative or a double affirmative is an affirmative).

If it's the good door:
the truth teller says "Yes" -- he knows that he would not lie and say "No" if asked if it was the good door, so he tells the truth about that and says "Yes".
the liar also says "Yes" -- he knows that he would lie and say "No" if asked if it was the good door, so he lies about that and says "Yes".

If it's the bad door:
the truth teller says "No" -- he knows that he would not lie and say "Yes" if asked if it was the good door, so he tells the truth about that and says "No".
the liar also says "No" -- he knows that he would lie and say "Yes" if asked if it was the good door, so he lies and about that and says "No".

There are other ways to formulate the question; all of them require nesting so that the liar property is invoked an even number of times.
Thank you. Your post made it clear and easy to understand the logic behind the question.
 

Similar threads

  • · Replies 131 ·
5
Replies
131
Views
9K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 212 ·
8
Replies
212
Views
17K
Replies
13
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 21 ·
Replies
21
Views
16K
  • · Replies 30 ·
2
Replies
30
Views
5K
  • · Replies 38 ·
2
Replies
38
Views
8K