Explain what is backtracking in Prolog?



Explain what is backtracking in Prolog?..

Answer / 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

More AI Languages Interview Questions

 Mention what is the difference between = and = = in Prolog?

1 Answers  


 Which is the primitive that creates new structure types in LISP? a) Defnum b) Deftype c) Defstruct d) None of the mentioned

1 Answers  


What is the output of the following statement? * (setf thing ‘point r 1) * (case thing (circle (*pi r r))(sphere (* 4 pi r r))) a) 1 b) 12.56637 c) NIL d) T

1 Answers  


 What is the output of the given statement? * (defclass article() ((title :accessor article-title :initarg :title) (author :accessor article-author :initarg :author))) a) Article b) c)  d) None of the mentioned

1 Answers  


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

0 Answers  






 How many items are available in mapping primitives are there? a) 3 b) 4 c) 5 d) 6

1 Answers  


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

0 Answers  


 Explain what is SWI-Prolog?

1 Answers  


Explain what is backtracking in Prolog?

1 Answers  


Explain what is List structures in Prolog?

1 Answers  


 Which is uses their arguments to build intermediate forms and evaluating them to produce a value? a) Backquote b) Macros c) List d) Procedures

1 Answers  


 What is the output of the given statement  in LISP? * (setf part (make-array ‘(8 8))) a) 8 b) 0 0 0 0 0 0 0 0 c) 0 0 0 0 d) 8 rows of 0

1 Answers  


Categories