All mock tests are FREE till 31 December — register to save your progress

When developing a dynamic programming algorithm, the sequence of steps followed is:
A. Construct an optimal solution from computed information.
B. Recursively define the value of an optimal solution.
C. Characterize the structure of an optimal solution.
D. Compute the value of an optimal solution, typically in a bottom-up fashion.
Choose the correct answer from the options given below:

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. C, B, D, A

Explanation

CLRS gives the four steps as: characterise the structure (C), recursively define the value (B), compute the value bottom-up (D), construct an optimal solution (A).

More Data Structures and Algorithms questions