Dynamic Programming21 sections · 916 units
Open in CourseQuiz: Covered Walkway Algebra
Deriving the linear form
Check Your Understanding
In Covered Walkway (cover points with intervals costing (r-l)^2 + c), how do we apply CHT?
- A.dp[i] = min_j(dp[j] + x[i]^2 + x[j]^2)
- B.dp[i] = min_j((dp[j] + x[j]) * x[i])
- C.Expand dp[i] = dp[j] + (x[i] - x[j+1])^2 + c to isolate -2*x[j+1]*x[i]
- D.dp[i] = min_j(dp[j] + c) where j < i