Question: What is the primary use of dynamic programming in algorithm design?
Options:
Correct Answer: To solve problems with overlapping subproblems and optimal substructure
Solution:
Dynamic programming is primarily used to solve problems that can be broken down into overlapping subproblems and have optimal substructure, allowing for efficient computation.