- #1
kent davidge
- 933
- 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?
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?