Question: Consider the following logic puzzle In five houses each with

Consider the following logic puzzle: In five houses, each with a different color, live 5 persons of different nationalities, each of whom prefer a different brand of cigarette, a different drink, and a different pet. Given the following facts, the question to answer is “Where does the zebra live, and in which house do they drink water?” The Englishman lives in the red house. The Spaniard owns the dog. The Norwegian lives in the first house on the left. Kools are smoked in the yellow house. The man who smokes Chesterfields lives in the house next to the man with the fox. The Norwegian lives next to the blue house. The Winston smoker owns snails. The Lucky Strike smoker drinks orange juice. The Ukrainian drinks tea. The Japanese smokes Parliaments. Kools are smoked in the house next to the house where the horse is kept. Coffee is drunk in the green house. The Green house is immediately to the right (your right) of the ivory house. Milk is drunk in the middle house. Discuss different representations of this problem as a CSP. Why would one prefer one representation over another?

View Solution:

Sale on SolutionInn
  • CreatedFebruary 14, 2011
  • Files Included
Post your question