Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Concept

Backtracking

Technique

Backtracking is a class of algorithms for finding solutions to some computational problems, notably constraint satisfaction or enumeration problems, that incrementally builds candidates to the solutions and abandons a candidate as soon as it determines that the candidate cannot possibly be completed to a valid solution. The classic textbook example is the eight queens puzzle, which asks for all arrangements of eight chess queens on a standard chessboard so that no queen attacks any other; the partial candidates are arrangements of k queens in the first k rows, and any partial solution that contains two mutually attacking queens can be abandoned. Backtracking can be applied only to problems that admit the concept of a partial candidate solution. Algorithms recorded in this atlas are grouped here when their design technique is backtracking.

Facts
Core Principle
Find a solution by trying one of several choices, and if the choice proves incorrect, return to the point of choice and try another. 1
Connections

In Field

Technique Used By

Sources
1. NIST DADS: backtracking
Definition
Quote, Definition
Find a solution by trying one of several choices. If the choice proves incorrect, computation backtracks or restarts at the point of choice and tries another choice.
View the Source
Wikipedia: Backtracking
  • Wikipedia, lead section
    Backtracking is a class of algorithms for finding solutions to some computational problems, notably constraint satisfaction or enumeration problems
  • In Group: Algorithm Design Strategies, Lead
    Backtracking is a class of algorithms for finding solutions to some computational problems, notably constraint satisfaction or enumeration problems, that incrementally builds candidates to the solutions, and abandons a candidate ("backtracks") as soon as it determines that the candidate cannot possibly be completed to a valid solution.
View the Source
DPLL algorithm (Wikipedia)
Technique Used By: DPLL algorithm, Lead paragraph
Quote, Technique Used By: DPLL algorithm, Lead paragraph
is a complete, backtracking-based search algorithm
View the Source
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.