I am new in backtracking algorithm. I am confused about difference between backtracking and recursion. I think for implementation of backtracking and other algorithm like as dynamic programming we use recursion. If there have any difference please leave your answer.
Asked
Active
Viewed 2,807 times
-2
-
Recursion simply means calling a function from within itself. It may or may not involve backtracking. – Abhishek Bansal Jul 21 '14 at 07:11
-
2This question has nothing to do with Java, C++, C, or C++11. Please don't apply irrelevant tags to your questions. – user3553031 Jul 21 '14 at 07:13
-
5This question appears to be off-topic because it is more about conceptual algorithm help and is not language specific, and should probably be on http://programmers.stackexchange.com/ – Some programmer dude Jul 21 '14 at 07:13
-
check - http://stackoverflow.com/questions/3592943/difference-between-back-tracking-and-dynamic-programming – TheLostMind Jul 21 '14 at 07:15
1 Answers
5
Backtracking is an approach to solve certain kind of problems (From Bottom - to -Top). Common examples would be : N-Queens, Sudoku etc. Recursion is used to implement an algorithm that backtracks.

TheLostMind
- 35,966
- 12
- 68
- 104