0

Prolog help

Consider the below portion of a Prolog program from class: female(mary). female(betty). male(tom).  male(jim).  male(alex). parent(tom, jim).  parent(betty, jim).  parent(tom, alex). parent(mary, alex).  mother(M, C) :- parent(M, C), female(M). Draw (on a piece of paper, or using whatever software you please) then submit the derivation tree for the query:  ?- mother(M, alex).

22nd Oct 2020, 6:48 AM
Lv1god
Lv1god - avatar
2 Réponses
+ 4
Is it your homework ?
31st Oct 2020, 11:38 AM
Pedro H.J
Pedro H.J - avatar
0
Yes
9th Dec 2020, 4:44 PM
Lv1god
Lv1god - avatar