What is a Backtracking Visualizer?
A backtracking visualizer shows recursive choices as a decision tree. Each branch represents choosing, skipping, or trying a candidate, and each return step shows the algorithm undoing the last choice.
This tool includes subset generation and permutation generation. It is useful for learning recursion, DFS decision trees, call stacks, and search-space pruning.
For the full cluster of related tools, browse the Data Structure Visualizers hub.
How to use this backtracking visualizer
- Paste short labels such as
A B C. - Choose subsets or permutations.
- Step through recursive calls and return steps.
- Watch the current path, remaining choices, and result list.
- Use the tree to see where the algorithm backtracks.
Backtracking and recursion
Backtracking is recursion plus undoing choices. It explores one candidate path, records a result or failure, then returns to the previous choice point and tries another option.
Compare this page with the Recursion Tree Visualizer, Stack and Queue Visualizer, and Knapsack DP Visualizer.