Dynamic Programming21 sections · 916 units
Open in CourseQuiz: When to Use Value-Based
Choosing the right approach
Check Your Understanding
When should you consider value-based DP instead of weight-based DP for a knapsack problem?
- A.When both weights and values are small
- B.When values are small but weights can be very large
- C.Value-based DP is always better
- D.When weights are small but values can be very large