Dynamic Programming21 sections · 916 units
Open in CourseQuiz: Knuth vs D&C
Choosing the right one
Check Your Understanding
When should you prefer Knuth optimization over D&C optimization?
- A.When the DP has only one parameter
- B.When you need O(n^2) instead of O(n^2 log n) and DP is computed by increasing interval length
- C.When the cost function is not convex
- D.When optimal split points are not monotonic