Module M31 · 31 of 35 in teaching order · Intermediate
Backtracking
Choose, explore, undo: searching decision trees with pruning.
Lessons
Choose, explore, unchoose: generating every subset and every permutation by walking a decision tree, with the call counts, complexity and pruning ideas.
Topics this module covers
The full module scope. Topics without a lesson above are not written yet.
- decision tree
- choose/explore/undo
- subsets
- permutations
- combinations
- constraints
- pruning
- N-Queens
- Sudoku
- grid search
- complexity