Answer to Question #4507 in Prolog for Dee
1. Consider the following Horn clauses.
b(x, t) <- t is x-2.
a(0, 1) <- .
a(x, y) <- x > 0, b(x, y).
Using cancellation and unification, show how each of the following queries resolve.
<-a(5,m).
<-a(0,b).
0
Answer in progress...
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
Prolog
Comments
Leave a comment