Examveda

How does Dynamic Programming differ from Greedy algorithms?

A. Greedy algorithms solve subproblems optimally.

B. DP is faster and uses less memory.

C. DP considers all possible solutions and builds up to the optimal solution.

D. Greedy algorithms always use recursion.

Answer: Option C


Join The Discussion

Related Questions on Dynamic Programming in Data Structures