DP Advanced patterns
16 Core DP Patterns
1. Fibonacci / Simple Recurrence DP
2. 0/1 Knapsack Pattern
3. Unbounded Knapsack Pattern
4. Longest Increasing Subsequence (LIS)
5. Longest Common Subsequence (LCS)
6. Kadane’s Algorithm Variants
7. Matrix Chain Multiplication (MCM) / Interval DP
8. DP on Trees
9. DP on DAGs
10. Grid 2D DP
11. Bitmask DP
12. Digit DP
13. Probability / Expected Value DP
14. Game Theory DP
15. Interval Scheduling / Linear DP
16. State Machine DP
Last updated