I need Help with Prolog puzzle ..

From: cybershaman (cybershaman_at_nm.ru)
Date: 12/09/04

  • Next message: Rick van Krevelen: "Re: I need Help with Prolog puzzle .."
    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


  • Next message: Rick van Krevelen: "Re: I need Help with Prolog puzzle .."

    Relevant Pages

    • Re: I need Help with Prolog puzzle ..
      ... % the girl who likes math ... not(like(X, reading)). ... % the boy who likes science ... not(like(X, gym)). ...
      (comp.lang.prolog)
    • I need Help with Prolog puzzle ..
      ... The girl who likes math and the boy who likes science are not in ... Alan and the girl in Stone's class don't like gym ... The girl in Land's class likes reading ...
      (comp.lang.prolog)
    • Re: So what??!!!
      ... for whom may be reading this. ... But hey what do you expect i'm only in 8th grade. ... i hated math until i set out to find practical uses for it. ... i always liked science, especially biology & chemistry. ...
      (misc.kids)
    • Re: Universal laws of the sciences
      ... I have just got around to reading just the intro ... It shows time and time again that science is a popularity ... new possible explanations for the infinite negative energy of a Dirac sea ... But do note thar Dr. Aspden uses math and logic to make his ...
      (rec.radio.amateur.antenna)
    • Re: Harvard Pres: Women Lack Ability In Math, Sciences
      ... to the fact that women have a right to learn science if they choose to do so. ... men in math and science has ... posts so that this doesn't turn into a 1200 line rantfest. ... > school boys than girls tend to score at very high and very low levels on ...
      (sci.geo.geology)