Consider the following prolog logic program: mother (mary, sue). father (john, sue). mother (mary, bill). father (john, bill). mother (sue, nancy). father (bob, nancy). mother (sue, jeff). father...


Consider the following prolog logic program:<br>mother (mary, sue).<br>father (john, sue).<br>mother (mary, bill).<br>father (john, bill).<br>mother (sue, nancy).<br>father (bob, nancy).<br>mother (sue, jeff).<br>father (bob, jeff).<br>mother (jane, ron).<br>Father(bill,ron).<br>Parent(A,B) :- father(A,B).<br>Parent (A,B) :- mother(A,B).<br>Grandparent(C,D) :- parent(C,E), parent(E,D).<br>Add a sibling relationship to the above program and<br>answer the following question:<br>?- sibling(sue, X).<br>

Extracted text: Consider the following prolog logic program: mother (mary, sue). father (john, sue). mother (mary, bill). father (john, bill). mother (sue, nancy). father (bob, nancy). mother (sue, jeff). father (bob, jeff). mother (jane, ron). Father(bill,ron). Parent(A,B) :- father(A,B). Parent (A,B) :- mother(A,B). Grandparent(C,D) :- parent(C,E), parent(E,D). Add a sibling relationship to the above program and answer the following question: ?- sibling(sue, X).

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here