Professional Documents
Culture Documents
Extra Example For Prolog
Extra Example For Prolog
Extra Example For Prolog
Q1: How many facts, rules, clauses are there in the following
knowledge base?
parent(john, carol).
male(john).
parent(alice, jerry).
male(jim).
grandparent(X,Y):-parent(X,P) , parent(P,Y).