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(

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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(

Post 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply