Global Information Lookup Global Information

Backtracking information


Backtracking is a class of algorithms for finding solutions to some computational problems, notably constraint satisfaction 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.[1]

The classic textbook example of the use of backtracking is the eight queens puzzle, that asks for all arrangements of eight chess queens on a standard chessboard so that no queen attacks any other. In the common backtracking approach, the partial candidates are arrangements of k queens in the first k rows of the board, all in different rows and columns. Any partial solution that contains two mutually attacking queens can be abandoned.

Backtracking can be applied only for problems which admit the concept of a "partial candidate solution" and a relatively quick test of whether it can possibly be completed to a valid solution. It is useless, for example, for locating a given value in an unordered table. When it is applicable, however, backtracking is often much faster than brute-force enumeration of all complete candidates, since it can eliminate many candidates with a single test.

Backtracking is an important tool for solving constraint satisfaction problems,[2] such as crosswords, verbal arithmetic, Sudoku, and many other puzzles. It is often the most convenient technique for parsing,[3] for the knapsack problem and other combinatorial optimization problems. It is also the program execution strategy used in the programming languages Icon, Planner and Prolog.

Backtracking depends on user-given "black box procedures" that define the problem to be solved, the nature of the partial candidates, and how they are extended into complete candidates. It is therefore a metaheuristic rather than a specific algorithm – although, unlike many other meta-heuristics, it is guaranteed to find all solutions to a finite problem in a bounded amount of time.

The term "backtrack" was coined by American mathematician D. H. Lehmer in the 1950s.[4] The pioneer string-processing language SNOBOL (1962) may have been the first to provide a built-in general backtracking facility.

  1. ^ Gurari, Eitan (1999). "CIS 680: DATA STRUCTURES: Chapter 19: Backtracking Algorithms". Archived from the original on 17 March 2007.
  2. ^ Biere, A.; Heule, M.; van Maaren, H. (29 January 2009). Handbook of Satisfiability. IOS Press. ISBN 978-1-60750-376-7.
  3. ^ Watson, Des (22 March 2017). A Practical Approach to Compiler Construction. Springer. ISBN 978-3-319-52789-5.
  4. ^ Rossi, Francesca; van Beek, Peter; Walsh, Toby (August 2006). "Constraint Satisfaction: An Emerging Paradigm". Handbook of Constraint Programming. Amsterdam: Elsevier. p. 14. ISBN 978-0-444-52726-4. Retrieved 30 December 2008.

and 18 Related for: Backtracking information

Request time (Page generated in 0.5677 seconds.)

Backtracking

Last Update:

may have been the first to provide a built-in general backtracking facility. The backtracking algorithm enumerates a set of partial candidates that,...

Word Count : 1986

Backtrack

Last Update:

Professionals), a 1979 episode of the television series BackTrack, a Linux distribution Backtracking, a search algorithm in computing Backtaxi, an aircraft...

Word Count : 156

Backtracking line search

Last Update:

In (unconstrained) mathematical optimization, a backtracking line search is a line search method to determine the amount to move along a given search direction...

Word Count : 4566

Sudoku solving algorithms

Last Update:

that will solve Sudoku puzzles using a backtracking algorithm, which is a type of brute force search. Backtracking is a depth-first search (in contrast...

Word Count : 1923

ReDoS

Last Update:

regex in most programming languages to use backtracking. The most severe type of problem happens with backtracking regular expression matches, where some...

Word Count : 1762

Berkeley Yacc

Last Update:

2021-09-17. "README.txt". BtYacc: BackTracking Yacc. Siber Systems. Retrieved 2020-05-14. "README.BYACC". Backtracking yacc. GitHub. Retrieved 2022-08-12...

Word Count : 1286

Regular expression

Last Update:

possessive by appending a plus sign, which disables backing off (in a backtracking engine), even if doing so would allow the overall match to succeed: While...

Word Count : 8915

Catchfire

Last Update:

In 1992, a Director's Cut of the film was released under the new title Backtrack. It runs 18 minutes longer than the theatrical version and restores Hopper's...

Word Count : 1465

Recursive descent parser

Last Update:

with backtracking is a technique that determines which production to use by trying each production in turn. Recursive descent with backtracking is not...

Word Count : 1119

Dancing Links

Last Update:

linked list. It is particularly useful for efficiently implementing backtracking algorithms, such as Knuth's Algorithm X for the exact cover problem....

Word Count : 1035

Memoization

Last Update:

retrying the next alternative is known in parsing as backtracking, and it is primarily backtracking that presents opportunities for memoization in parsing...

Word Count : 3744

BackTrack

Last Update:

BackTrack was a Linux distribution that focused on security, based on the Knoppix Linux distribution aimed at digital forensics and penetration testing...

Word Count : 783

DPLL algorithm

Last Update:

the Davis–Putnam–Logemann–Loveland (DPLL) algorithm is a complete, backtracking-based search algorithm for deciding the satisfiability of propositional...

Word Count : 1750

Stochastic gradient descent

Last Update:

gradient from being taken into account and only considering its sign. Backtracking line search is another variant of gradient descent. All of the below...

Word Count : 6588

Twitter

Last Update:

platform access, which the latter declined. On May 4, 2023, Twitter backtracked its paywall system, allowing the free posting of automated tweets by...

Word Count : 29566

YouTube

Last Update:

Retrieved February 28, 2019. Gerken, Tom (February 19, 2019). "YouTube backtracks after Pokemon 'child abuse' ban". BBC News. Retrieved February 20, 2019...

Word Count : 31507

Backtaxi

Last Update:

broadcast their intentions while backtracking in the interest of safety; for example, the statement "Entering and backtracking runway 36" would indicate the...

Word Count : 361

Maze generation algorithm

Last Update:

storing backtracking information in the maze itself. This also provides a quick way to display a solution, by starting at any given point and backtracking to...

Word Count : 2448

PDF Search Engine © AllGlobal.net