Week 7 Discussion Forum

Dynamic Programming Importance

Dynamic Programming Importance

by Hasiba Ferdous 192-15-2820 -
Number of replies: 1

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.

51 words

In reply to Hasiba Ferdous 192-15-2820

Re: Dynamic Programming Importance

by Alif Pranto -
Dynamic programming is used where we have problems, which can be divided into similar sub-problems, so that their results can be re-used. Mostly, these algorithms are used for optimization. Before solving the in-hand sub-problem, dynamic algorithm will try to examine the results of the previously solved sub-problems

47 words