Question: please solve those questions %Using the given facts and rules, define the predicates for the: (a) father, % You may want to use the operator

please solve those questions

please solve those questions %Using the given facts and rules, define the

%Using the given facts and rules, define the predicates for the: (a) father, % You may want to use the operator , which is the opposite of An example, brother, X is the brother of Y. i they have parentZin%common andif smalea difXando don't represent the same person. In Prolog this tan beer remedha through the following rule 53. (b) sister, (c) grandmother, brother(X, Y) :-parent(Z, X), parent(Z. Y), male(X), X-Y %Some more examples (including the use of not) mother(X, Y): parent(X,Y), female(X). sibling(X, Y) parent(Z, X), parent(Z, Y), not(x -Y). aunt(X, Y) :-female(X), sister(X,Mom), mother(Morn,Y). aunt(X, Y):- female(X), sister(X.Pop), father(Pop,Y). a. Father - is parent of and is male b. Sister-has same parents (at least one) and is female c. Grandmother- parent of parent and is female d. Cousin - has same grandparent or offspring of sibling of parent, assuming we have grandparent or sibling and offspring

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!