Week 6 Discussion Forum

Dynamic Programming

Dynamic Programming

by hafiz 191-15-2343 -
Number of replies: 0

Dynamic Programming is mainly an optimization over plain recursion. Wherever we see a recursive solution that has repeated calls for same inputs, we can optimize it using Dynamic Programming. The idea is to simply store the results of subproblems, so that we do not have to re-compute them when needed later. This simple optimization reduces time complexities from exponential to polynomial.

61 words