Week 6 Discussion Forum

Dynamic Programming

Dynamic Programming

by MD.ANISUR RAHMAN (192-15-2825) -
Number of replies: 1

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. It is mainly used where the solution of one sub-problem is needed repeatedly. The computed solutions are stored in a table, so that these don’t have to be re-computed. Hence, this technique is needed where overlapping sub-problem exists. In Dynamic Programming the problem is solved in following steps:
#recursive relation

#tabular computation

#traceback

82 words

In reply to MD.ANISUR RAHMAN (192-15-2825)

Re: Dynamic Programming

by MD. IFTEKHARUL ISLAM RIDOY -
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