07-11-2018, 05:12 AM
Dynamic programming is both a mathematical optimization method and a computer programming method. It is a method of solving a complex problem by breaking it down into a collection of simpler subproblems and storing their solutions.