All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Logic > Liars and Knights
Unknown answers (Posted on 2003-05-13) Difficulty: 3 of 5
Timothy once visited a land of knights and liars,and met two inhabitants,A and B. He had the following conversation.

Timothy:A,is B a liar?
Timothy hears A's answer,but he will not tell you what it was.
Timothy:B,are you both liars?
Timothy hears B's answer,but he will not tell you what it was.
At this point,I will not tell you whether or not he knew what they were.

He once told his friend what questions he asked,but not what answers he got. The friend did not have enough information,so the following dialogue occurred.

Friend:Were your answers the same?
Timothy's friend hears his answer,and finally the friend has enough information to solve what A and B are.
What are they?

See The Solution Submitted by Tim Axoy    
Rating: 4.0000 (7 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution Liar's Knight at the Knight's Lair | Comment 7 of 13 |

If Timothy tells his friend that the two answers were same, i.e. Timothy's answer is Yes, then his friend has three viable scenarios and therefore cannot be sure. These are:
1. That the answers were Y,Y and that A is a Knight and B is a Liar.
2. That the answers were N,N and that they are both Knights.
3. That the answers were N,N and that they are both Liars.

However, if Tomothy tells his friend that the two answers were not same, i.e. Timothy's answer is No, then his friend has only one viable scenario and therefore can be sure. This is:
1. That the answers were Y,N and that A is a Liar and B is a Knight.

Since upon hearing Timothy's answer his friend has enough information to solve what A and B are, Timothy must have answered No.

Hence,
A is a Liar
B is a Knight
  Posted by Sanjay on 2003-05-13 12:27:45
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (6)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information