Open In App

Algorithms Quiz | Dynamic Programming | Question 8

Like Article
Like
Save Article
Save
Share
Report issue
Report

What happens when a top-down approach of dynamic programming is applied to any problem?
(A) It increases both, the time complexity and the space complexity
(B) It increases the space complexity and decreases the time complexity.
(C) It increases the time complexity and decreases the space complexity
(D) It decreases both, the time complexity and the space complexity


Answer: (B)

Explanation: As the mentioned approach uses the memoization technique it always stores the previously calculated values. Due to this, the time complexity is decreased but the space complexity is increased.

Quiz of this Question
Please comment below if you find anything wrong in the above post


Last Updated : 04 May, 2020
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads