Dynamic Programming21 sections · 916 units
Open in Course

Quiz: 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?

  1. A.dp[i] = min_j(dp[j] + x[i]^2 + x[j]^2)
  2. B.dp[i] = min_j((dp[j] + x[j]) * x[i])
  3. C.Expand dp[i] = dp[j] + (x[i] - x[j+1])^2 + c to isolate -2*x[j+1]*x[i]
  4. D.dp[i] = min_j(dp[j] + c) where j < i
Start the roadmap to answer the quizzes and solve the challenges