YUNOVA · Data Structures & Algorithms · Module 11: Advanced dynamic programming
Matrix chain multiplication and interval DP
Matrix chain multiplication and interval DP
Key points
- Interval DP solves dp[i][j] for a range by trying every split point k.
- Matrix chain finds the multiplication order with the fewest scalar multiplications.
- Fill the table by increasing interval length.