+1 vote
in Prolog by
Explain What Is Backtracking?

1 Answer

0 votes
by

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.

Related questions

0 votes
asked Mar 3, 2021 in Prolog by SakshiSharma
0 votes
asked Nov 1, 2021 in Artificial Intelligence by DavidAnderson
...