HOME

TheInfoList



OR:

The Zebra Puzzle is a well-known
logic puzzle A logic puzzle is a puzzle deriving from the mathematics, mathematical field of deductive reasoning, deduction. History The logic puzzle was first produced by Charles Lutwidge Dodgson, who is better known under his pen name Lewis Carroll, the a ...
. Many versions of the puzzle exist, including a version published in '' Life International'' magazine on December 17, 1962. The March 25, 1963, issue of ''Life'' contained the solution and the names of several hundred successful solvers from around the world. The puzzle is often called Einstein's Puzzle or Einstein's Riddle because it is said to have been invented by
Albert Einstein Albert Einstein (14 March 187918 April 1955) was a German-born theoretical physicist who is best known for developing the theory of relativity. Einstein also made important contributions to quantum mechanics. His mass–energy equivalence f ...
as a boy; it is also sometimes attributed to
Lewis Carroll Charles Lutwidge Dodgson (27 January 1832 – 14 January 1898), better known by his pen name Lewis Carroll, was an English author, poet, mathematician, photographer and reluctant Anglicanism, Anglican deacon. His most notable works are ''Alice ...
. However, there is no evidence for either person's authorship, and the ''Life International'' version of the puzzle mentions brands of cigarettes that did not exist during Carroll's lifetime or Einstein's boyhood. The Zebra puzzle has been used as a
benchmark Benchmark may refer to: Business and economics * Benchmarking, evaluating performance within organizations * Benchmark price * Benchmark (crude oil), oil-specific practices Science and technology * Experimental benchmarking, the act of defining a ...
in the evaluation of computer algorithms for solving
constraint satisfaction problem Constraint satisfaction problems (CSPs) are mathematical questions defined as a set of objects whose state must satisfy a number of constraints or limitations. CSPs represent the entities in a problem as a homogeneous collection of finite const ...
s.


Description

The following version of the puzzle appeared in ''Life International'' in 1962:


Solution

Assuming that one person drinks water and one owns a zebra, then it is possible not only to deduce the answers to the two questions, but to figure out a complete solution of who lives where, in what color house, keeping what pet, drinking what drink, and smoking what brand of cigarettes. By considering the clues a few at a time, it is possible to slowly build inferences that incrementally complete the puzzle's unique correct solution. For example, by clue 10, the Norwegian lives in house #1, and by clue 15, house #2 must be blue. The Norwegian's house therefore cannot be blue, nor can it be red, where the Englishman lives (clue 2), or green or ivory, which are next to each other (clue 6). It must therefore be yellow, which means the Norwegian also smokes Kools (clue 8). The March 25, 1963, issue of ''Life International'' contained the following solution, and the names of several hundred solvers from around the world.


Other versions

Other versions of the puzzle have various differences from the ''Life International'' puzzle, in which various colors, nationalities, cigarette brands, drinks, and pets are substituted, or the clues are given in a different order. These do not change the logic of the puzzle. A slightly simplified version of this puzzle appears in the video game ''
Dishonored 2 ''Dishonored 2'' is a 2016 First-person (video games), first person action-adventure game developed by Arkane Lyon and published by Bethesda Softworks for PlayStation 4, Windows, and Xbox One. It is the sequel to 2012's ''Dishonored''. After E ...
'', where the player character has to solve it to unlock a gate to an abandoned mansion. Some versions of the puzzle indicate that the green house is on the left of the ivory house, instead of on the right of it.


References

{{Reflist


External links


Einstein's Puzzle
on
OpenCog OpenCog is a project that aims to build an open source artificial intelligence framework. OpenCog Prime is an architecture for robot and virtual embodied cognition that defines a set of interacting components designed to give rise to human-equiva ...
's wiki
Zebra puzzle
on
Rosetta Code Rosetta Code is a wiki-based programming chrestomathy website with implementations of common algorithms and solutions to various computer programming, programming problems in many different programming languages. It is named for the Rosetta Stone ...

Einstein's Riddle
on Brainzilla
Einstein's puzzle
as
Alloy An alloy is a mixture of chemical elements of which in most cases at least one is a metal, metallic element, although it is also sometimes used for mixtures of elements; herein only metallic alloys are described. Metallic alloys often have prop ...
model
Watson
a clone of “Sherlock”, a game which is itself based on the Zebra puzzle Logic puzzles Albert Einstein 1962 works