Phase 24Days 135-140

Advanced Dynamic Programming

The DP that wins contests: bitmask, digit, tree rerooting, SOS, and optimizations

Phase Goal

Layer the advanced DP families on top of the core, and recognize each from its constraints.

Progress

Day 135: Bitmask DP

Day 136: SOS DP & subset-sum-over-subsets

Day 137: Digit DP

Day 138: DP on trees — rerooting

Day 139: DP optimizations

Day 140: Advanced DP recap

Phase Complete!

After this phase, you'll be able to:

  • Bitmask DP
  • SOS DP & subset-sum-over-subsets
  • Digit DP
  • DP on trees — rerooting
  • DP optimizations
  • Advanced DP recap

After Phase 24, explain a core invariant, reconstruct a solution after a delay, diagnose a bug, and solve one unlabelled variation. Repair a failed prerequisite before advancing; record help separately from independent work.