1.

If an optimal solution can be created for a problem by constructing optimal solutions for its subproblems, the problem possesses ____________ property.(a) Overlapping subproblems(b) Optimal substructure(c) Memoization(d) GreedyI had been asked this question in an online interview.This intriguing question comes from Dynamic Programming topic in division Dynamic Programming of Data Structures & Algorithms II

Answer»

The correct OPTION is (b) Optimal substructure

Easiest explanation - Optimal substructure is the property in which an optimal solution is FOUND for the problem by CONSTRUCTING optimal SOLUTIONS for the SUBPROBLEMS.



Discussion

No Comment Found

Related InterviewSolutions