Skip to content

Latest commit

 

History

History
 
 

backtracking

Backtracking Algorithms

Backtracking, also known as depth-first search or branch and bound is a general algorithmic technique that considers searching every possible combination in order to solve an optimization problem. It requires starting with one pos­si­ble move out of many avail­able moves to solve the prob­lem. If that is not the intended solution, one needs to back­track and select some other move and try to solve it.

Backtracking is an important tool for solving constraint satisfaction problems, such as crosswords, verbal arithmetic, Sudoku, and many other puzzles.

Sudoku solved by backtracking

Further reading: Wikipedia