Slide 14.25: Rules (cont.) Slide 14.27: Search Home |
likes( john,mary ). likes( john, trains ). likes( peter, fast_cars ). likes( Person1, Person2 ) :- hobby( Person1, Hobby ), hobby( Person2, Hobby ). hobby( john, trainspotting ). hobby( tim, sailing ). hobby( helen, trainspotting ). hobby( simon, sailing ).