Week 6 Discussion Forum

Dynamic programming

Dynamic programming

by MD.TORIKUL ISLAM ( 192-15-2852 ) EMON -
Number of replies: 2

Dynamic programming basically approach it's similar to divide and also conquer in breaking down the problem into smaller and also smaller possible sub-problems. But unlike, divide and conquer, these sub-problems are not solved independently. Rather, results of these smaller sub-problems are remembered and used for similar or overlapping sub-problems.

49 words

In reply to MD.TORIKUL ISLAM ( 192-15-2852 ) EMON

Re: Dynamic programming

by Md. Sabbir Hossain 192-15-2809 -
Example: The following computer problems can be solved using dynamic programming approach −

  • Fibonacci number series
  • Knapsack problem
  • Shortest path
  • DP coin change problem

20 words

In reply to MD.TORIKUL ISLAM ( 192-15-2852 ) EMON

Re: Dynamic programming

by Abdulla Al Moin 192-15-2838 -
Three basic concepts of Dynamic Programming :

  1. Tabulation vs Memoizatation
  2. Optimal Substructure Property
  3. Overlapping Subproblems Property

13 words