Explain what is backtracking in Prolog?

Answer Posted / chaitanya

In Prolog, backtracking is a process adopted by Prolog.  When a sub-goal fails in Prolog, the Prolog system moves its steps backwards to the previous goal and tries to re-satisfy it. Backtracking enables Prolog to find all alternative solutions to a given query.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the output of the given statement? * (defclass article() ((title :accessor article-title :initarg :title) (author :accessor article-author :initarg :author))) * (defclass computer-article (article) ()) * (defclass business-article (article) ()) * (defclass political-article (article) ()) * (setf articles (list (make-instance ‘business-article :title “Memory Prices down”))) a) Business article b) Political article c) Business article

859


What are the different nlp tasks deep learning can be applied?

531


What does the language of fopl consist of?

539


Explain List of artificial intelligence projects?

913


Explain List of programming languages for artificial intelligence?

967