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](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66e2bdb86a178_73666e2bdb80a64e.jpg)
[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
Get step-by-step solutions from verified subject matter experts
