Dynamic Programming21 sections · 916 units
Open in CourseQuiz: Linear Form Recognition
Identifying CHT applicability
Check Your Understanding
CHT applies when DP recurrence is dp[i] = min_j(m[j] * x[i] + b[j]) + c[i]. What must be true?
- A.The values m[j] must all be positive
- B.The values x[i] must be sorted in decreasing order
- C.The term involving j and i must be separable as m[j] * x[i]
- D.The cost function must satisfy quadrangle inequality