Send Close Add comments: (status displays here)
Got it!  This site uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website.nbsp; Note: This appears on each machine/browser from which this site is accessed.
Prolog: Puzzles


1. Prolog: Puzzles

2. Constraint logic
Constraint logic can be used to pose and solve various types of puzzles.

3. Boy girl puzzle
Here is one puzzle. Can you solve it? adapted from Gardner (1978, p. 92-93). As Gardner states,

4. Another puzzle
Five of Carmi Parker's friends went on vacation at the same time last winter, and Carmi was delighted to watch each person's dog (no two of which are the same breed) while that friend was away. From the information provided, can you determine the first and last names (one first name is Kay, and one surname is Fankle) of the owner of each dog (one dog, ironically enough, is named Kitty), as well as the breed of each dog.

5. Zebra puzzle
Here is the famous Zebra puzzle. For more info, see "Zebra puzzle" on Wikipedia. The following version of the puzzle appeared in Life International in 1962: Now, who drinks water? Who owns the zebra?

There are many solutions to this puzzle using Prolog on the Internet.

6. End of page