InterviewSolution
Saved Bookmarks
| 1. |
Which of the following is/are property/properties of a dynamic programming problem?(a) Optimal substructure(b) Overlapping subproblems(c) Greedy approach(d) Both optimal substructure and overlapping subproblemsI got this question in my homework.My doubt is from Dynamic Programming topic in division Dynamic Programming of Data Structures & Algorithms II |
|
Answer» RIGHT answer is (d) Both optimal SUBSTRUCTURE and overlapping subproblems To explain: A problem that can be solved using DYNAMIC programming possesses overlapping subproblems as WELL as optimal substructure properties. |
|