1.

Explain What Is Backtracking In Prolog?

Answer»

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.

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.



Discussion

No Comment Found