1.3 Translate the following statements into Prolog rules: (a) Everybody who has a child is happy (introduce...
Question:
1.3 Translate the following statements into Prolog rules:
(a) Everybody who has a child is happy (introduce a one-argument relation happy).
(b) For all X, if X has a child who has a sister then X has two children (introduce new relation hastwochildren).
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Artificial Intelligence In Power System Optimization
ISBN: 9781578088058
1st Edition
Authors: Weerakorn Ongsakul, Vo Ngoc Dieu
Question Posted: