In the context of dynamic programming, what does 'optimal substructure' mean?
-
The solution can be constructed from optimal solutions of its subproblems
-
The problem can be solved in linear time
-
The problem has a unique solution
-
The problem can be solved using a greedy approach