Docsity

Dynamic programming. Assignment, Summaries of Linear Programming

Partial preview of the text

Download Dynamic programming. Assignment and more Summaries Linear Programming in PDF only on Docsity!

SUBMITTED BY: MAHA ZIA

SUBMITTED TO: HASHIM JAVAD

BSCS 3

DYNAMIC PROGRAMMING

DYNAMIC PROGRAMMING

Dynamic programming was invented by an American Mathematician RICHARD BELLMAN in the 1950’s to solve optimization problem and later assimilated by CS “PROGRAMMING” here means “ PLANNING”

STEPS FOR DYNAMIC

PROGRAMMING

i. Characterize the structure of an optimal solution. ii. Recursively define the value of an optimal solution. iii. Compute the value of an optimal solution. iv. Construct optimal solution from computed information.

EXAMPLE

It break the problem in sub problems.

X,Y,Z,……

X Y^

Z

WHY WE NEED TO STORE IN DYNAMIC TABLE If these sub problems are solved then, it is helpful for later in dynamic table. There is no need to do calculations again and again It saves time

use

Dynamic programming is basically used for optimization solution. WHAT IS OPTIMIZATION PROBLEM??? In mathematics and computer science, an optimization problem is the problem of finding the best solution from all feasible solutions.