SlideShare une entreprise Scribd logo
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.”

Contenu connexe

Tendances

Tendances (20)

Simplex method concept,
Simplex method concept,Simplex method concept,
Simplex method concept,
 
Big-M Method Presentation
Big-M Method PresentationBig-M Method Presentation
Big-M Method Presentation
 
simplex method
simplex methodsimplex method
simplex method
 
simplex method
simplex methodsimplex method
simplex method
 
Linear Programming 1
Linear Programming 1Linear Programming 1
Linear Programming 1
 
Introduction to dynamic programming
Introduction to dynamic programmingIntroduction to dynamic programming
Introduction to dynamic programming
 
Duality in Linear Programming
Duality in Linear ProgrammingDuality in Linear Programming
Duality in Linear Programming
 
Dynamic Programming
Dynamic ProgrammingDynamic Programming
Dynamic Programming
 
Big m method
Big m methodBig m method
Big m method
 
Transportation technique
Transportation techniqueTransportation technique
Transportation technique
 
Duality
DualityDuality
Duality
 
Dynamic programming
Dynamic programmingDynamic programming
Dynamic programming
 
Sensitivity analysis linear programming copy
Sensitivity analysis linear programming   copySensitivity analysis linear programming   copy
Sensitivity analysis linear programming copy
 
Solving linear programming model by simplex method
Solving linear programming model by simplex methodSolving linear programming model by simplex method
Solving linear programming model by simplex method
 
Goal Programming
Goal ProgrammingGoal Programming
Goal Programming
 
Tsp branch and-bound
Tsp branch and-boundTsp branch and-bound
Tsp branch and-bound
 
Integer programming
Integer programmingInteger programming
Integer programming
 
Lesson 33: The Assignment Problem
Lesson 33: The Assignment  ProblemLesson 33: The Assignment  Problem
Lesson 33: The Assignment Problem
 
Assignment problem
Assignment problemAssignment problem
Assignment problem
 
NON LINEAR PROGRAMMING
NON LINEAR PROGRAMMING NON LINEAR PROGRAMMING
NON LINEAR PROGRAMMING
 

En vedette

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
 

En vedette (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
 

Plus de 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
 

Plus de 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
 

Dernier

Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resourcesdimpy50
 
Neurulation and the formation of the neural tube
Neurulation and the formation of the neural tubeNeurulation and the formation of the neural tube
Neurulation and the formation of the neural tubeSaadHumayun7
 
Advances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdfAdvances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdfDr. M. Kumaresan Hort.
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxjmorse8
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfQucHHunhnh
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticspragatimahajan3
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsCol Mukteshwar Prasad
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...Nguyen Thanh Tu Collection
 
ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesashishpaul799
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxCapitolTechU
 
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdfPost Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdfPragya - UEM Kolkata Quiz Club
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptSourabh Kumar
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePedroFerreira53928
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesRased Khan
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxShibin Azad
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Celine George
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfbu07226
 

Dernier (20)

Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdf
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdfPost Exam Fun(da) Intra UEM General Quiz - Finals.pdf
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdf
 
Neurulation and the formation of the neural tube
Neurulation and the formation of the neural tubeNeurulation and the formation of the neural tube
Neurulation and the formation of the neural tube
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
Advances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdfAdvances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdf
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptx
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyes
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdfPost Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 

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.”