Mathematica 9 is now available

Wolfram Library Archive

All Collections Articles Books Conference Proceedings
Courseware Demos MathSource Technical Notes
Title Downloads

The Zebra Puzzle

Jaime Rangel-Mondragón
Organization: Universidad Autonoma de Querétaro
Department: Facultad de Informatica
Arturo González-Gutiérrez
Revision date


The Zebra Puzzle is a logical puzzle attributed to Einstein involving five men, all with different nationalities, jobs, pets, favorite drinks and living in houses of different colors and numbers. Fourteen clues are provided linking these variables. The object of the puzzle is to find out who owns the zebra. In this work the solving of the puzzle is obtained through the use of pattern manipulation via the commands DeleteCases and Cases mainly. To compare methodologies, a similar easier problem is tackled along with a more involved one.

*Applied Mathematics > Computer Science
*Education > College
*Mathematics > Discrete Mathematics
*Mathematics > Foundations of Mathematics > Logic
*Mathematics > Recreational Mathematics

Zebra puzzle, logic, Einstein, math, fun
Downloads Download Wolfram CDF Player

The Zebra Puzzle 3.nb (192.4 KB) - Mathematica Notebook