Page 1 of 1

1.Consider the following Prolog program. please type your answar. a(X) :-b(X), c(X). a(X) :-e(X), d(Z). b(X) :-f(X). c(

Posted: Sat May 14, 2022 7:16 pm
by answerhappygod
1.Consider the following Prolog program. please
type your answar.
a(X) :-b(X), c(X).
a(X) :-e(X), d(Z).
b(X) :-f(X).
c(X) :-d(X).
d(2).
d(3).
e(4).
e(1).
f(1).
f(2).
Draw the search tree for the Prolog query ?-a(X). and list, in
the order they are produced, all the answers Prolog would give.