SlideShare a Scribd company logo
1 of 8
Dynamic Programming

   Operations Research
Dynamic programming
• Series of inter-related decisions
• How to find the combination of most optimal
  decisions over time?
• Production Scheduling, Inventory Control,
  Warehousing, given changes in demand –
  How much to produce, store and sell over a
  period of time


                                                2
Sometimes its easier to work
        backwards from the end!
• You are going for an arranged marriage and
  you have 10 proposals, whom you will meet
  one after the other.
• Once you have rejected a proposal, you
  cannot get the same girl again!
• The current profile may be best or they may
  be better profiles yet to come . . .
• How to decide?
A problem along similar lines
•   Lets say you have 10 tries to receive a random amount between 0 and 100. At
    each try, you can either accept what you get and quit, or pass to next try.
•   At each try, when would you accept or reject the value that comes up?
•   Working backwards,
     – On the last attempt (assuming you passed 9 times), you will have to take whatever value
       comes – expected value = 50.
     – On the second last attempt, you can either accept whatever comes or pass to last attempt
       where you expect to get 50. So, in second last attempt, if you get more than 50 you should
       accept, else pass.
     – On the third last attempt, you can either accept or move to second last attempt, where you
       expect to get 75 or again pass to last attempt where you expect to get 50. On an average you
       would expect to get 62.5 over the last two attempts. Therefore, if you get more than 62.5 in
       third last attempt, you should accept, else pass.
     – On the 4th last attempt, you can either accept or move to 3rd last attempt where you expect to
       get 87.5 or pass to 2nd last attempt where you expect to get 75 or pass to last attempt where
       you expect to get 50. On an average you would expect to get 708 over last 3 attempts.
       Therefore, if you get more than 708 in 4th last attempt, you should accept, else pass.
     – And so on . . .
Finding Shortest Path




Stage 1   Stage 2   Stage 3   Stage 4   Stage 5
Working Backwards
Stage 3   H         I     SP        Go to
E         1+3       4+4   4         H
F         6+3       3+4   7         I
G         3+3       3+4   6         H


                Stage     E     F       G       SP       Go to
                4
                B         7+4   4+7     6+6     11       E or F
                C         3+4   2+7     4+6     7        E
                D         4+4   1+7     5+6     8        E or F



                                Stage       B        C       D     SP   Go to
                                5
                                A           2+11 4+7         2+8   10   D
ADEHJ =2+4+1+3=10
ADFIJ = 2+1+3+4=10
Bellman’s Principle of Optimality
• “An optimal policy has the property that
  whatever the initial state and initial decision
  are, the remaining decisions must constitute
  an optimal policy with regard to the state
  resulting from the first decision.”

More Related Content

What's hot

Dynamic Programming
Dynamic ProgrammingDynamic Programming
Dynamic Programmingparamalways
 
Duality in Linear Programming
Duality in Linear ProgrammingDuality in Linear Programming
Duality in Linear Programmingjyothimonc
 
2. forward chaining and backward chaining
2. forward chaining and backward chaining2. forward chaining and backward chaining
2. forward chaining and backward chainingmonircse2
 
Linear programming - Model formulation, Graphical Method
Linear programming  - Model formulation, Graphical MethodLinear programming  - Model formulation, Graphical Method
Linear programming - Model formulation, Graphical MethodJoseph Konnully
 
Chapter 19 decision-making under risk
Chapter 19   decision-making under riskChapter 19   decision-making under risk
Chapter 19 decision-making under riskBich Lien Pham
 
Linear Programming (graphical method)
Linear Programming (graphical method)Linear Programming (graphical method)
Linear Programming (graphical method)Kamel Attar
 
Test of significance (t-test, proportion test, chi-square test)
Test of significance (t-test, proportion test, chi-square test)Test of significance (t-test, proportion test, chi-square test)
Test of significance (t-test, proportion test, chi-square test)Ramnath Takiar
 
Automata theory -Conversion of ε nfa to nfa
Automata theory -Conversion of ε nfa to nfaAutomata theory -Conversion of ε nfa to nfa
Automata theory -Conversion of ε nfa to nfaAkila Krishnamoorthy
 
Simplex method concept,
Simplex method concept,Simplex method concept,
Simplex method concept,Dronak Sahu
 
Travelling salesman problem
Travelling salesman problemTravelling salesman problem
Travelling salesman problemPradeep Behera
 

What's hot (20)

Dynamic Programming
Dynamic ProgrammingDynamic Programming
Dynamic Programming
 
Unit.2. linear programming
Unit.2. linear programmingUnit.2. linear programming
Unit.2. linear programming
 
Hill climbing
Hill climbingHill climbing
Hill climbing
 
Backtracking
Backtracking  Backtracking
Backtracking
 
Dynamic pgmming
Dynamic pgmmingDynamic pgmming
Dynamic pgmming
 
Decision theory
Decision theoryDecision theory
Decision theory
 
Duality in Linear Programming
Duality in Linear ProgrammingDuality in Linear Programming
Duality in Linear Programming
 
2. forward chaining and backward chaining
2. forward chaining and backward chaining2. forward chaining and backward chaining
2. forward chaining and backward chaining
 
Linear programming - Model formulation, Graphical Method
Linear programming  - Model formulation, Graphical MethodLinear programming  - Model formulation, Graphical Method
Linear programming - Model formulation, Graphical Method
 
Decision Theory
Decision TheoryDecision Theory
Decision Theory
 
Linear programming
Linear programmingLinear programming
Linear programming
 
Chapter 19 decision-making under risk
Chapter 19   decision-making under riskChapter 19   decision-making under risk
Chapter 19 decision-making under risk
 
Theory of probability
Theory of probabilityTheory of probability
Theory of probability
 
Linear Programming Problem
Linear Programming ProblemLinear Programming Problem
Linear Programming Problem
 
Linear Programming (graphical method)
Linear Programming (graphical method)Linear Programming (graphical method)
Linear Programming (graphical method)
 
Test of significance (t-test, proportion test, chi-square test)
Test of significance (t-test, proportion test, chi-square test)Test of significance (t-test, proportion test, chi-square test)
Test of significance (t-test, proportion test, chi-square test)
 
Unit.4.integer programming
Unit.4.integer programmingUnit.4.integer programming
Unit.4.integer programming
 
Automata theory -Conversion of ε nfa to nfa
Automata theory -Conversion of ε nfa to nfaAutomata theory -Conversion of ε nfa to nfa
Automata theory -Conversion of ε nfa to nfa
 
Simplex method concept,
Simplex method concept,Simplex method concept,
Simplex method concept,
 
Travelling salesman problem
Travelling salesman problemTravelling salesman problem
Travelling salesman problem
 

Viewers also liked

Dynamic Programming
Dynamic ProgrammingDynamic Programming
Dynamic ProgrammingSahil Kumar
 
Daa:Dynamic Programing
Daa:Dynamic ProgramingDaa:Dynamic Programing
Daa:Dynamic Programingrupali_2bonde
 
Dynamic programming
Dynamic programmingDynamic programming
Dynamic programmingShakil Ahmed
 
Lecture 8 dynamic programming
Lecture 8 dynamic programmingLecture 8 dynamic programming
Lecture 8 dynamic programmingOye Tu
 
Elements of dynamic programming
Elements of dynamic programmingElements of dynamic programming
Elements of dynamic programmingTafhim Islam
 
Dynamic programming - fundamentals review
Dynamic programming - fundamentals reviewDynamic programming - fundamentals review
Dynamic programming - fundamentals reviewElifTech
 
Dynamic programming
Dynamic programmingDynamic programming
Dynamic programmingGopi Saiteja
 
5.3 dynamic programming
5.3 dynamic programming5.3 dynamic programming
5.3 dynamic programmingKrish_ver2
 
Optimum polygon triangulation
Optimum polygon triangulationOptimum polygon triangulation
Optimum polygon triangulationHarsukh Chandak
 
Lesson 19: Maximum and Minimum Values
Lesson 19: Maximum and Minimum ValuesLesson 19: Maximum and Minimum Values
Lesson 19: Maximum and Minimum ValuesMatthew Leingang
 
Recursion tree method
Recursion tree methodRecursion tree method
Recursion tree methodRajendran
 
Maximums and minimum
Maximums and minimum Maximums and minimum
Maximums and minimum rubimedina01
 
15 puzzle problem game on android
15 puzzle problem game on android15 puzzle problem game on android
15 puzzle problem game on androidAkhilesh Jain
 
Master method
Master method Master method
Master method Rajendran
 
String Matching Finite Automata & KMP Algorithm.
String Matching Finite Automata & KMP Algorithm.String Matching Finite Automata & KMP Algorithm.
String Matching Finite Automata & KMP Algorithm.Malek Sumaiya
 

Viewers also liked (20)

Dynamic Programming
Dynamic ProgrammingDynamic Programming
Dynamic Programming
 
Daa:Dynamic Programing
Daa:Dynamic ProgramingDaa:Dynamic Programing
Daa:Dynamic Programing
 
Dynamic programming
Dynamic programmingDynamic programming
Dynamic programming
 
Lecture 8 dynamic programming
Lecture 8 dynamic programmingLecture 8 dynamic programming
Lecture 8 dynamic programming
 
Elements of dynamic programming
Elements of dynamic programmingElements of dynamic programming
Elements of dynamic programming
 
Knapsack Problem
Knapsack ProblemKnapsack Problem
Knapsack Problem
 
Dynamic programming - fundamentals review
Dynamic programming - fundamentals reviewDynamic programming - fundamentals review
Dynamic programming - fundamentals review
 
Dynamic programming
Dynamic programmingDynamic programming
Dynamic programming
 
5.3 dynamic programming
5.3 dynamic programming5.3 dynamic programming
5.3 dynamic programming
 
Optimum polygon triangulation
Optimum polygon triangulationOptimum polygon triangulation
Optimum polygon triangulation
 
Lesson 19: Maximum and Minimum Values
Lesson 19: Maximum and Minimum ValuesLesson 19: Maximum and Minimum Values
Lesson 19: Maximum and Minimum Values
 
Recursion tree method
Recursion tree methodRecursion tree method
Recursion tree method
 
Unit 3 daa
Unit 3 daaUnit 3 daa
Unit 3 daa
 
Queuing problems
Queuing problemsQueuing problems
Queuing problems
 
Maximums and minimum
Maximums and minimum Maximums and minimum
Maximums and minimum
 
Kmp
KmpKmp
Kmp
 
15 puzzle problem game on android
15 puzzle problem game on android15 puzzle problem game on android
15 puzzle problem game on android
 
Master method
Master method Master method
Master method
 
String Matching Finite Automata & KMP Algorithm.
String Matching Finite Automata & KMP Algorithm.String Matching Finite Automata & KMP Algorithm.
String Matching Finite Automata & KMP Algorithm.
 
Combinatorial Optimization
Combinatorial OptimizationCombinatorial Optimization
Combinatorial Optimization
 

More from Nilam Kabra

Layout Case Study
Layout Case StudyLayout Case Study
Layout Case StudyNilam Kabra
 
Facility & Layout Design Case Study
Facility & Layout Design Case StudyFacility & Layout Design Case Study
Facility & Layout Design Case StudyNilam Kabra
 
Capacity & Inventory Management
Capacity & Inventory ManagementCapacity & Inventory Management
Capacity & Inventory ManagementNilam Kabra
 
Organizational Behavior Chapter 9
Organizational Behavior Chapter 9Organizational Behavior Chapter 9
Organizational Behavior Chapter 9Nilam Kabra
 
Organizational Behavior Chapter 8
Organizational Behavior Chapter 8Organizational Behavior Chapter 8
Organizational Behavior Chapter 8Nilam Kabra
 
Organizational Behavior Chapter 7
Organizational Behavior Chapter 7Organizational Behavior Chapter 7
Organizational Behavior Chapter 7Nilam Kabra
 
Organizational Behavior Chapter 5
Organizational Behavior Chapter 5Organizational Behavior Chapter 5
Organizational Behavior Chapter 5Nilam Kabra
 
Organizational Behavior Chapter 4
Organizational Behavior Chapter 4Organizational Behavior Chapter 4
Organizational Behavior Chapter 4Nilam Kabra
 
Organizational Behavior Chapter 3
Organizational Behavior Chapter 3Organizational Behavior Chapter 3
Organizational Behavior Chapter 3Nilam Kabra
 
Organizational Behavior Chapter 2
Organizational Behavior Chapter 2Organizational Behavior Chapter 2
Organizational Behavior Chapter 2Nilam Kabra
 
Organizational Behavior Chapter 1
Organizational Behavior Chapter 1Organizational Behavior Chapter 1
Organizational Behavior Chapter 1Nilam Kabra
 
Transportation Assignment
Transportation AssignmentTransportation Assignment
Transportation AssignmentNilam Kabra
 
Replacement Theory
Replacement TheoryReplacement Theory
Replacement TheoryNilam Kabra
 
Relationship Marketing
Relationship MarketingRelationship Marketing
Relationship MarketingNilam Kabra
 
Human Resource Management
Human Resource ManagementHuman Resource Management
Human Resource ManagementNilam Kabra
 

More from Nilam Kabra (19)

The EOQ Formula
The EOQ FormulaThe EOQ Formula
The EOQ Formula
 
Layout Case Study
Layout Case StudyLayout Case Study
Layout Case Study
 
Facility & Layout Design Case Study
Facility & Layout Design Case StudyFacility & Layout Design Case Study
Facility & Layout Design Case Study
 
Equations
EquationsEquations
Equations
 
EOQ Ken Homa
EOQ   Ken HomaEOQ   Ken Homa
EOQ Ken Homa
 
Capacity & Inventory Management
Capacity & Inventory ManagementCapacity & Inventory Management
Capacity & Inventory Management
 
Organizational Behavior Chapter 9
Organizational Behavior Chapter 9Organizational Behavior Chapter 9
Organizational Behavior Chapter 9
 
Organizational Behavior Chapter 8
Organizational Behavior Chapter 8Organizational Behavior Chapter 8
Organizational Behavior Chapter 8
 
Organizational Behavior Chapter 7
Organizational Behavior Chapter 7Organizational Behavior Chapter 7
Organizational Behavior Chapter 7
 
Organizational Behavior Chapter 5
Organizational Behavior Chapter 5Organizational Behavior Chapter 5
Organizational Behavior Chapter 5
 
Organizational Behavior Chapter 4
Organizational Behavior Chapter 4Organizational Behavior Chapter 4
Organizational Behavior Chapter 4
 
Organizational Behavior Chapter 3
Organizational Behavior Chapter 3Organizational Behavior Chapter 3
Organizational Behavior Chapter 3
 
Organizational Behavior Chapter 2
Organizational Behavior Chapter 2Organizational Behavior Chapter 2
Organizational Behavior Chapter 2
 
Organizational Behavior Chapter 1
Organizational Behavior Chapter 1Organizational Behavior Chapter 1
Organizational Behavior Chapter 1
 
Transportation Assignment
Transportation AssignmentTransportation Assignment
Transportation Assignment
 
Replacement Theory
Replacement TheoryReplacement Theory
Replacement Theory
 
Queuing Theory
Queuing TheoryQueuing Theory
Queuing Theory
 
Relationship Marketing
Relationship MarketingRelationship Marketing
Relationship Marketing
 
Human Resource Management
Human Resource ManagementHuman Resource Management
Human Resource Management
 

Recently uploaded

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 

Recently uploaded (20)

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 

Dynamic Programming

  • 1. Dynamic Programming Operations Research
  • 2. Dynamic programming • Series of inter-related decisions • How to find the combination of most optimal decisions over time? • Production Scheduling, Inventory Control, Warehousing, given changes in demand – How much to produce, store and sell over a period of time 2
  • 3. Sometimes its easier to work backwards from the end! • You are going for an arranged marriage and you have 10 proposals, whom you will meet one after the other. • Once you have rejected a proposal, you cannot get the same girl again! • The current profile may be best or they may be better profiles yet to come . . . • How to decide?
  • 4. A problem along similar lines • Lets say you have 10 tries to receive a random amount between 0 and 100. At each try, you can either accept what you get and quit, or pass to next try. • At each try, when would you accept or reject the value that comes up? • Working backwards, – On the last attempt (assuming you passed 9 times), you will have to take whatever value comes – expected value = 50. – On the second last attempt, you can either accept whatever comes or pass to last attempt where you expect to get 50. So, in second last attempt, if you get more than 50 you should accept, else pass. – On the third last attempt, you can either accept or move to second last attempt, where you expect to get 75 or again pass to last attempt where you expect to get 50. On an average you would expect to get 62.5 over the last two attempts. Therefore, if you get more than 62.5 in third last attempt, you should accept, else pass. – On the 4th last attempt, you can either accept or move to 3rd last attempt where you expect to get 87.5 or pass to 2nd last attempt where you expect to get 75 or pass to last attempt where you expect to get 50. On an average you would expect to get 708 over last 3 attempts. Therefore, if you get more than 708 in 4th last attempt, you should accept, else pass. – And so on . . .
  • 5. Finding Shortest Path Stage 1 Stage 2 Stage 3 Stage 4 Stage 5
  • 7. Stage 3 H I SP Go to E 1+3 4+4 4 H F 6+3 3+4 7 I G 3+3 3+4 6 H Stage E F G SP Go to 4 B 7+4 4+7 6+6 11 E or F C 3+4 2+7 4+6 7 E D 4+4 1+7 5+6 8 E or F Stage B C D SP Go to 5 A 2+11 4+7 2+8 10 D ADEHJ =2+4+1+3=10 ADFIJ = 2+1+3+4=10
  • 8. Bellman’s Principle of Optimality • “An optimal policy has the property that whatever the initial state and initial decision are, the remaining decisions must constitute an optimal policy with regard to the state resulting from the first decision.”