Knights and Knaves

Knights and Knaves

Knights and Knaves is a type of logic puzzle devised by Raymond Smullyan.

On a fictional island, all inhabitants are either knights, who always tell the truth, or knaves, who always lie. The puzzles involve a visitor to the island who meets small groups of inhabitants. Usually the aim is for the visitor to deduce the inhabitants' type from their statements, but some puzzles of this type ask for other facts to be deduced. The puzzle may also be to determine a yes/no question which the visitor can ask in order to discover what he needs to know.

An early example of this type of puzzle involves three inhabitants referred to as A, B and C. The visitor asks A what type he is, but does not hear A's answer. B then says "A said that he is a knave" and C says "Don't believe B: he is lying!" To solve the puzzle, note that no inhabitant can say that he is a knave. Therefore B's statement must be untrue, so he is a knave, making C's statement true, so he is a knight. Since A's answer invariably would be "I'm a knight", it is not possible to determine whether A is a knight or knave from the information provided.

In some variations, inhabitants may also be alternators, who alternate between lying and telling the truth, or normals, who can say whatever they want (as in the case of Knight/Knave/Spy puzzles). A further complication is that the inhabitants may answer yes/no questions in their own language, and the visitor knows that "bal" and "da" mean "yes" and "no" but does not know which is which. These types of puzzles were a major inspiration for what has become known as 'The hardest logic puzzle ever'.

ome Examples of "Knights and Knaves" puzzles

A large class of elementary logical puzzles can be solved using the laws of Boolean algebra and logic truth tables. Familiarity with boolean algebra and its simplification process is a prerequisite to understand the following examples.

John and Bill are residents of the island of knights and knaves.

Question 1

John says: We are both knaves.

Who is what?

Question 2

John: If Bill is a knight then I am a knight.

Who is who?

Question 3

Here is a rendition of perhaps the most famous of this type of puzzle:

John and Bill are standing at a fork in the road. You know that one of them is a knight and the other a knave, but you don't know which. You also know that one road leads to Death, and the other leads to Freedom. By asking one yes/no question, can you determine the road to Freedom?

This version of the puzzle was further popularised by a scene in the 1986 fantasy film, Labyrinth, in which Sarah (Jennifer Connelly) finds herself faced with two doors each guarded by a two-headed knight. One door leads to the castle at the centre of the labyrinth, and one to certain doom.

It also showed up in the Doctor Who episode "Pyramids of Mars"

olution to Question 1

This is what John is saying in a more extended form:

"John is a knave and Bill is a knave."

If John was a knight, he would not be able to say that he was a knavesince he would be lying. Therefore the statement "John is a knave"must be true.

Since knaves lie, and one statement is true, the other statement mustbe false. Therefore the statement "Bill is a knave" must be falsewhich leads to the conclusion that Bill is a knight.

The solution is that John is a knave and Bill is a knight.

olution for Question 2

John is a knave and Bill is a knight.

In this scenario, John is providing a misleading, conditional equation in which if Bill is a knave then John is also a knave. This is not possible: if Bill were a knave he would be lying when he says "We are kind of different". However, that would imply that John is both a knave and a truth-teller. Clearly they cannot both be knaves.

Rather, the solution is in the conditional statement. John says that if Bill is a knave then John is also a knave. He says nothing about the outcome if Bill were a knight. Therefore, if Bill is a knight, John's statement is irrelevant. Moreover, if Bill is a knight, he must be telling the truth when he says that he and John are different. As such, John must be a knave.

olution to Question 3

For finding out which way leads to freedom the following question should be asked: "Will the other man tell me that your path leads to freedom?"

If the man says "Yes", then the path does not lead to freedom, if he says "No", then it does. The following logic is used to solve the problem.

If the question is asked of the knight and the knight's path leads to freedom, he will say "No", truthfully answering that the knave would lie and say "No". If the knight's path does not lead to freedom he will say "Yes", since the knave would say that the path leads to freedom.

If the question is asked of the knave and the knave's path leads to freedom he will say "No" since the knight would say "Yes" it does lead to freedom. If his path doesn't lead to freedom he would say Yes since the Knight would tell you "No" it doesn't lead to freedom.

The reasoning behind this is that, whichever guardian the questioner asks, one would not know whether the guardian was telling the truth or not. Therefore one must create a situation where they receive both the truth "and" a lie applied one to the other. Therefore if they ask the Knight, they will receive the truth about a lie; if they ask the Knave then they will receive a lie about the truth.

Note that the above solution requires that each of them know that the other is a knight/knave. An alternate solution is to ask of either man, "What would your answer be if I asked you if your path leads to freedom?"

If the man says "Yes", then the path leads to freedom, if he says "No", than it does not. The reason is fairly easy to understand, and is as follows:

If you ask the knight if their path leads to freedom, they will answer truthfully, with "yes" if it does, and "no" if it does not. They will also answer this question truthfully, again stating correctly if the path led to freedom or not.

If you ask the knave if their path leads to freedom, they will answer falsely about their answer, with "no" if it does, and "yes" if it does not. However, when asked this question, they will lie about what their false answer would be, in a sense, lying about their lie. They would answer correctly, with their first lie cancelling out the second.

This question forces the knight to say a truth about a truth, and the knave to say a lie about a lie, resulting, in either case, with the truth.

Knights and Knaves puzzles in popular culture

* In the role-playing console video game Final Fantasy VI (released as Final Fantasy III for the US market on the Super NES), the town of Zozo contains a knights and knaves puzzle that rewards the player for resolving it and applying the answer to an item in the town. (Though in this case, everyone in town is a "knave" except one person who says nothing related to the puzzle.)
* Near the end of the PC game , a spin-off of The Elder Scrolls series, the daedra Clavicus Vile poses a simple version of the knight and knaves puzzle for the hero, Cyrus, to solve.
* The PC game Dragonsphere has a variation of the knight and knaves where several faeries constantly alternate colors. A certain faerie may or may not change its state (always lie, always tell the truth) depending on its color. The puzzle is made even more difficult by the fact that they are always moving, making it difficult to identify an individual faerie.
* In the movie "Labyrinth", Sarah must solve a knights-and-knaves puzzle to determine which door leads to the castle.
* In the cartoon "Samurai Jack", Jack faces a huge two-headed serpent. The heads introduce themselves, claiming that one head always tells the truth and one always lies. They also claim that if Jack is swallowed by one of the heads, he will be transported further along his path, but if he is swallowed by the other, he will be digested in their shared belly. In neither case do they reveal which head is which. Jack solves the puzzle and allows himself to be swallowed by the helpful head. Immediately following, the heads gloat to each other that they are both liars.
* In the Doctor Who episode The Pyramids of Mars, Sarah Jane Smith is imprisoned in a glass cage and the Doctor must solve a knights-and-knaves puzzle (this one consisting of two robots) in order to set her free.
*In the animated series Yu-Gi-Oh!, the main characters were faced with a pair of brothers who claimed that one was a liar and the other a truth teller, but in the end it was revealed that both were liars.
*In the game Kingdom of Loathing, the Naughty Sorceress' lair is, among other things, guarded by four people: One who always lies, one who tells the truth, one who alternates between the two, and one who craves human flesh.
*The Videlectrix game Where's an Egg? is based on this puzzle.
*The point-and-click horror game 'Dark Seed II' has a castle guarded by two monsters who pose a knights-and-knaves puzzle to the protagonist.
*An issue of the webcomic Order of the Stick includes a 'test of the mind' where the characters have to decide which of two figures is giving them correct directions in the manner of the knights and knaves puzzle. This is solved by shooting one of them in the foot, the 'knight' is shocked at this treatment and the 'knave' denies that he has been shot. [http://www.giantitp.com/comics/oots0327.html]
*In the webcomic xkcd, there is a comic strip entitled "Labyrinth Puzzle" which is a play on the standard knights-and-knaves puzzle. [http://xkcd.com/246/]
*In the webcomic girly, Otra has to face down a variation of the "Two Paths" riddle to lift a curse from Winter. [http://girlyyy.com/go/347]

External links

* [http://www.hku.hk/cgi-bin/philodep/knight/puzzle An automated Knights and Knaves puzzle generator]
* [http://www.nottingham.ac.uk/journals/analysis/preprints/COOK.pdf A note on some philosophical implications of the Knights and Knaves puzzle for the concept of knowability]
* [http://newheiser.googlepages.com/knightsandknaves A complete list and analysis of Knight, Knave, and Spy puzzles, where spies are able to lie or tell the truth.]


Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • fable, parable, and allegory — Introduction       any form of imaginative literature (allegory) or spoken utterance constructed in such a way that readers or listeners are encouraged to look for meanings hidden beneath the literal surface of the fiction. A story (rhetoric) is… …   Universalium

  • The Hardest Logic Puzzle Ever — is a title coined by George Boolos in La Repubblica 1992 under the title L indovinello più difficile del mondo for the following Raymond Smullyan inspired logic puzzle:Boolos provides the following clarifications:George Boolos, The Hardest Logic… …   Wikipedia

  • Raymond Smullyan — Infobox Writer name = Raymond Merrill Smullyan imagesize = caption = pseudonym = birthdate = birth year and age|1919 birthplace = Far Rockaway, New York occupation = mathematician, logician, philosopher, and magician nationality = American period …   Wikipedia

  • Julian Le Grand — is Richard Titmuss Professor of Social Policy at the London School of Economics (LSE) and was a senior policy advisor to former Prime Minister Tony Blair. [http://en.wikipedia.org/wiki/ ] He is the author, co author or editor of seventeen books… …   Wikipedia

  • Logic puzzle — Part of a series on Puzzles …   Wikipedia

  • El acertijo lógico más dificil — Saltar a navegación, búsqueda Los tres dioses: Verdad, Falso y, Aleatorio El acertijo lógico más difícil del mundo es un título que acuñó George Boolos en La Repubblica 1992 bajo el título L indovinello più difficile del mondo para el siguien …   Wikipedia Español

  • Lie — For other uses, see Lie (disambiguation) A lie (also called prevarication, falsehood) is a type of deception in the form of an untruthful statement, especially with the intention to deceive others. To lie is to state something with disregard to… …   Wikipedia

  • Pyramids of Mars — For the pyramid shaped structures on the planet Mars, see Cydonia Mensae. For the Dudley Simpson soundtrack, see Doctor Who Pyramids of Mars. 082 – Pyramids of Mars Doctor Who serial …   Wikipedia

  • Jim Klobuchar — James John Klobuchar (born 1928) is an American journalist, author, and travel guide. He wrote for the Star Tribune in Minneapolis for three decades and is the father of United States Senator Amy Klobuchar.Klobuchar was born 9 April 1928 in Ely,… …   Wikipedia

  • Zork Zero — Developer(s) Infocom Publisher(s) Infocom Designer(s) …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”