JayantGoel001 / BackTracking

BackTracking

Home Page:https://www.geeksforgeeks.org/backtracking-algorithms/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BackTracking

Backtracking is an algorithmic-technique for solving problems recursively by trying to build a solution incrementally, one piece at a time, removing those solutions that fail to satisfy the constraints of the problem at any point of time (by time, here, is referred to the time elapsed till reaching any level of the search tree).

For example, consider the SudoKo solving Problem, we try filling digits one by one. Whenever we find that current digit cannot lead to a solution, we remove it (backtrack) and try next digit. This is better than naive approach (generating all possible combinations of digits and then trying every combination one by one) as it drops a set of permutations whenever it backtracks.

About

BackTracking

https://www.geeksforgeeks.org/backtracking-algorithms/


Languages

Language:C++ 78.6%Language:Java 21.4%