I need Help with Prolog puzzle ..
From: cybershaman (cybershaman_at_nm.ru)
Date: 12/09/04
- Previous message: cybershaman: "I need Help with Prolog puzzle .."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 8 Dec 2004 23:22:32 -0800
Hello,
I have this kinda easy-to-figure-out-by-hand problem, but the major
headache is that this problem has to be solved in Prolog, I was
wondering if any you guys know how to do so..
Here is the problem:
David, Debbie, Sandra, and Alan all go to the same school, but they are
in different classes. Their teachers' names are Stone, Rock, Land,
and Waters. Their favorite subjects are math, reading, gym, and
science. Use the clues below to match each student with his or her
favorite subject and teacher.
1. The girl who likes math and the boy who likes science are not in
Water's class
2. Sandra, Alan and the girl in Stone's class don't like gym
3. The girl in Land's class likes reading
- Previous message: cybershaman: "I need Help with Prolog puzzle .."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|