Recursion And Backtracking Ladder¶
This ladder is for learning how to turn "try everything" into one honest search tree with state, branching, and pruning.
Who This Is For¶
Use this ladder when:
- recursive search feels ad hoc
- you keep writing brute force before deciding what one call frame means
- you need a clean boundary between backtracking, DP, and meet-in-the-middle
Warm-Up¶
- define one recursive state
- define one base case
- define one undo step
Core¶
- backtracking with legality pruning
- branch ordering
- deciding when the search tree is already too large
Compare Points Inside The Repo¶
How To Use This Bridge¶
- define the state before coding recursion
- write the prune rule before optimizing syntax
- if the tree is still too large, escalate to DP, MITM, or complexity triage