267 views
Each inhabitant of a remote village always tells the truth or always lies. A villager will give only a “Yes” or a “No” response to a question a tourist asks. Suppose you are a tourist visiting this area and come to a fork in the road. One branch leads to the ruins you want to visit; the other branch leads deep into the jungle. A villager is standing at the fork in the road. What one question can you ask the villager to determine which branch to take?

as answer of this question given in rosen is

“If I were to ask you whether the right branch leads to the ruins, would you
say 'yes'?”

thank you

There are many correct answers to this problem. Still, all involve double layering or combining a question about the kind of person being addressed with a question about the information being sought. One solution is to ask this question: "If I were to ask you whether the right branch leads to the ruins, would you say 'yes'?"

If the villager is a truth-teller, he will reply "yes" if and only if the right branch leads to the ruins. Now let us see what the liar says. If the right branch leads to the ruins, he would say "no" if asked whether the right branch leads to the ruins.

@ykrishnay

## 3. https://gateoverflow.in/205619/Rosen-ex1-1-q-no-45

by

i have doubt regarding the question that tourist asks

““If I were to ask you whether the right branch leads to the ruins, would you
say 'yes'?”

is this question contains 2 questions

q1. whether the right branch leads to the ruins?

q2. would you say “yes” to the question q1?
reshown
i have doubt regarding the question that tourist asks

is this question contains 2 questions

q1. whether the right branch leads to the ruins?

q2. would you say “yes” to the question q1?