1.7 Try to understand how Prolog derives answers to the following questions, using the program of Figure...

Question:

1.7 Try to understand how Prolog derives answers to the following questions, using the program of Figure 1.8. Try to draw the corresponding derivation diagrams in the style of Figure 1.9. Will any backtracking occur at particular questions?

(a) ?-parent(pam, bob).

(b) ?-mother( pam, bob).

(c) ?-grandparent(pam, ann).

(d) ?-grandparent(bob, jim).

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: