Showing Posts From

Pruning

Backtracking: Permutations, Combinations & Pruning

Backtracking: Permutations, Combinations & Pruning

Week 25 notes: turning the Week 17 template into a toolkit. The three shapes (subsets, combinations, permutations), handling duplicates without dupes, and the pruning that keeps it feasible.

Backtracking: An Intro

Backtracking: An Intro

Week 17 notes: backtracking explores every candidate by building it up step by step and undoing dead ends. The choose/explore/un-choose template, and why pruning is everything.