Dynamic Programming Key characteristic of a Dynamic Program: Breaking up a large, unwieldy problem into a series of smaller, more tractable problems. Shortest.

Slides:



Advertisements
Similar presentations
Dynamic Programming Rahul Mohare Faculty Datta Meghe Institute of Management Studies.
Advertisements

Chapter 11 Dynamic Programming.
Dynamic Programming In this handout A shortest path example
MIT and James Orlin © Dynamic Programming 1 –Recursion –Principle of Optimality.
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
Deterministic Dynamic Programming.  Dynamic programming is a widely-used mathematical technique for solving problems that can be divided into stages.
1 Appendix B: Solving TSP by Dynamic Programming Course: Algorithm Design and Analysis.
Management Science 461 Lecture 2b – Shortest Paths September 16, 2008.
Greedy Algorithms Basic idea Connection to dynamic programming Proof Techniques.
Computability and Complexity 23-1 Computability and Complexity Andrei Bulatov Search and Optimization.
Chapter 7 Dynamic Programming 7.
§ 8 Dynamic Programming Fibonacci sequence
Dynamic Programming Technique. D.P.2 The term Dynamic Programming comes from Control Theory, not computer science. Programming refers to the use of tables.
Math443/543 Mathematical Modeling and Optimization
The Stagecoach Problem
Design and Analysis of Algorithms - Chapter 81 Dynamic Programming Dynamic Programming is a general algorithm design technique Dynamic Programming is a.
Dynamic Programming Optimization Problems Dynamic Programming Paradigm
To accompany Quantitative Analysis for Management, 8e by Render/Stair/Hanna M2-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Module 2 Dynamic.
Chapter 10 Dynamic Programming. 2 Agenda for This Week Dynamic Programming –Definition –Recursive Nature of Computations in DP –Forward and Backward Recursion.
MNG221 - Management Science
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
NetworkModel-1 Network Optimization Models. NetworkModel-2 Network Terminology A network consists of a set of nodes and arcs. The arcs may have some flow.
Design and Analysis of Algorithms Lecture Dynamic programming Alexander Kolesnikov DEPARTMENT OF COMPUTER SCIENCE UNIVERSITY OF JOENSUU JOENSUU,
Lesson 5.5.  “I know my graph is right!” exclaims Gloria. “I’ve checked and rechecked it. Yours must be wrong, Keith.”  Keith disagrees. “I’ve entered.
Graph Theory Topics to be covered:
Dynamic Programming. Well known algorithm design techniques:. –Divide-and-conquer algorithms Another strategy for designing algorithms is dynamic programming.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Dynamic Programming Tutorial &Practice on Longest Common Sub-sequence.
Fundamentals of Algorithms MCS - 2 Lecture # 7
Markov Decision Processes1 Definitions; Stationary policies; Value improvement algorithm, Policy improvement algorithm, and linear programming for discounted.
Dynamic Programming.
ECES 741: Stochastic Decision & Control Processes – Chapter 1: The DP Algorithm 31 Alternative System Description If all w k are given initially as Then,
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
Route Planning Texas Transfer Corp (TTC) Case 1. Linear programming Example: Woodcarving, Inc. Manufactures two types of wooden toys  Soldiers sell for.
D Nagesh Kumar, IIScOptimization Methods: M5L2 1 Dynamic Programming Recursive Equations.
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
Lecture 7 All-Pairs Shortest Paths. All-Pairs Shortest Paths.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Ant colony optimization. HISTORY introduced by Marco Dorigo (MILAN,ITALY) in his doctoral thesis in 1992 Using to solve traveling salesman problem(TSP).traveling.
Tuesday, April 30 Dynamic Programming – Recursion – Principle of Optimality Handouts: Lecture Notes.
D Nagesh Kumar, IIScOptimization Methods: M6L5 1 Dynamic Programming Applications Capacity Expansion.
1 Inventory Control with Time-Varying Demand. 2  Week 1Introduction to Production Planning and Inventory Control  Week 2Inventory Control – Deterministic.
Chapter 18 Deterministic Dynamic Programming
Thursday, May 2 Dynamic Programming – Review – More examples Handouts: Lecture Notes.
Eastern Mediterranean University Department Of Industrial Engineering Deterministic Dynamic Programming presented by: Ziad El Masri Supervisor: Prof. Dr.
Prepared by Dr.Osman Taylan
D Nagesh Kumar, IIScOptimization Methods: M5L1 1 Dynamic Programming Introduction.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Dynamic Programming Tutorial &Practice on Longest Common Sub-sequence.
Introduction and Preliminaries D Nagesh Kumar, IISc Water Resources Planning and Management: M4L1 Dynamic Programming and Applications.
1 Dynamic Programming Chapter 3. Learning Objectives 2 After completing this chapter, students will be able to: 1.Understand the overall approach of dynamic.
1 4.7 TIME ALIGNMENT AND NORMALIZATION Linear time normalization:
Dynamic Programming - DP December 18, 2014 Operation Research -RG 753.
1 1 Slide © 2005 Thomson/South-Western Chapter 9 Network Models n Shortest-Route Problem n Minimal Spanning Tree Problem n Maximal Flow Problem.
St. Edward’s University
Water Resources Planning and Management Daene McKinney
Chapter 11 Dynamic Programming.
Dynamic Programming 1 Neil Tang 4/20/2010
4.7 TIME ALIGNMENT AND NORMALIZATION
Dynamic Programming Lecture 13 (5/31/2017).
Dynamic Programming General Idea
Chapter 3 Dynamic Programming.
Shortest Path.
Unit 4: Dynamic Programming
CSE 373: Data Structures and Algorithms
Unit-4: Dynamic Programming
4.7 TIME ALIGNMENT AND NORMALIZATION
Dynamic Programming 1 Neil Tang 4/15/2008
Dynamic Programming General Idea
Dynamic Programming 動態規劃
Presentation transcript:

Dynamic Programming Key characteristic of a Dynamic Program: Breaking up a large, unwieldy problem into a series of smaller, more tractable problems. Shortest Path Example:

Dynamic Programming General Idea: work backward from day 4 to day 1. For day 4, what is the shortest path to reach LA given you began the day in either Denver or San Antonio? f 4 (8) = 1030 f 4 (9) = 1390

Dynamic Programming Now consider day 3. Shortest path from Kansas City to LA is the minimum of the distance traveled in day 3 to a day 4 city, plus the shortest path from a day 4 city to LA : f 3 (5) = min{ f 4 (8), f 4 (9)} = min{1640*,2180} = 1640 Repeat for Omaha and Dallas: f 3 (6) = min{ f 4 (8)*, f 4 (9)} = 1570 f 3 (7) = min{ f 4 (8), f 4 (9)*} = 2330

Dynamic Programming Now consider day 2. f 2 (2) = min{ f 3 (5), f 3 (6), f 3 (7) } = min{2320*,2360,2710} = 2320 f 2 (3) = min{ f 3 (5)*, f 3 (6), f 3 (7) } = 2220 f 2 (4) = min{ f 3 (5)*, f 3 (6), f 3 (7) }= 2150 Now consider day 1. f 1 (1) = min{ f 2 (2)*, f 2 (3), f 2 (4) } = 2870

Dynamic Programming The shortest distance is The route that obtained the shortest distance can be found by backtracking from the optimal(*) solution found for day 1 through day 4. 1 – 2 – 5 – 8 – 10

Dynamic Programming Considering a single equation from the shortest route problem, a recursion formula can be developed: f 2 (2) = min{ f 3 (5), f 3 (6), f 3 (7) } f n-1 (i) = min{ d ij + f n (j)} where i is the city at the start of the day j and j is the set of possible cities at the end of the day.

Dynamic Programming Key characteristics of a dynamic program: 1)The problem can be subdivided into stages, with a policy decision at each stage. 2)Each stage has a number of states associated with the beginning of that stage. 3)The effect of the policy decision at each stage is to transform the current state to a state associated with the beginning of the next stage. 4)The solution procedure is designed to find an optimal policy for the overall problem. 5)Given the current state, an optimal policy for the remaining stages is independent of the policy decisions adopted in previous stages. 6)The solution procedure begins by finding the optimal policy for the last stage. 7)A recursive relationship that identifies the optimal policy for stage n, given the optimal policy for stage n + 1, is available.