Question: [5] 8b. Consider a prolog fact parent(A, B), meaning A is the parent of B. It might be used as parent(anne, bob) parent(alex, bob). parent(ann,

 [5] 8b. Consider a prolog fact "parent(A, B)", meaning A is

[5] 8b. Consider a prolog fact "parent(A, B)", meaning A is the parent of B. It might be used as parent(anne, bob) parent(alex, bob). parent(ann, bruce). parent ann, brenda) parent bob, christie). parent(brenda, chris). Write a Prolog rule that could be used to determine the "cousin" family relation, using only the parent/2 facts, as well as the built-in predicate for determining when 2 terms cannot unify (be equal). For example, "cat dog" is true, while "dog dog" is false (Hint: For full marks, you will need to use)

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!