Consider the program
nat(s(X)) :- nat(X).
nat(0).
and the query
:- nat(Y).
a) Describe the complete SLD-resolution tree for this query.
b) Explain why Prolog will not find an answer for this query.
c) Change the program so that Prolog can find an answer.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here