Showing posts with label prolog. Show all posts
Showing posts with label prolog. Show all posts

Monday, 2 May 2011

Crazy about Prolog.

parent(mohan,mahesh).

parent(jaya,mahesh).

male(mohan).

female(jaya).

father(X,Y) :- parent(X,Y) , male(X).

mother(X,Y) :- parent(X,Y) , female(X).

Didn't get much, did you ? Neither did I (sorry Sonia Ma'am) till I got this crazy idea of learning prolog. To confuse you even more let me add the term Artificial Intelligence into the pot.