Dynamic programming is used when:
There are overlapping subproblems
Heuristics are not applicable
The solution space is large
The problem is NP-hard

Advanced Algorithms Exercises are loading ...