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.
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(
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
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(
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!