Dynamic programming: Difference between revisions

Content deleted Content added
Repair dead link to ifors dynamic programming modules, with explicit mention of IFORS as per their copyright policy: https://ifors.ms.unimelb.edu.au/tutorial/copyright.html
m Fixed reference links that were broken
Line 368:
For n=1 the problem is trivial, namely S(1,h,t) = "move a disk from rod h to rod t" (there is only one disk left).
 
The number of moves required by this solution is 2<sup>''n''</sup>&nbsp;&minus;&nbsp;1. If the objective is to '''maximize''' the number of moves (without cycling) then the dynamic programming [[Bellman equation|functional equation]] is slightly more complicated and 3<sup>''n''</sup>&nbsp;&minus;&nbsp;1 moves are required.<ref>{{Citation |author=Moshe Sniedovich |title= OR/MS Games: 2. The Towers of Hanoi Problem |journal=INFORMS Transactions on Education |volume=3 |issue=1 |year=2002 |pages=34–51 |url=httphttps://archive.ite.journal.informsdoi.org/Vol3No1/Sniedovich10.1287/ited.3.1.45 |postscript=.}}</ref>
 
=== Egg dropping puzzle ===
Line 394:
: ''W''(''n'',''k'') = minimum number of trials required to identify the value of the critical floor under the worst-case scenario given that the process is in state ''s'' = (''n'',''k'').
 
Then it can be shown that<ref name="sniedovich_03">Sniedovich, M. (2003). [httphttps://pubsonline.informsdoi.org/toc10.1287/ited/.4/.1.48 The joy of egg-dropping in Braunschweig and Hong Kong]. INFORMS Transactions on Education, 4(1) 48–64.</ref>
 
: ''W''(''n'',''k'') = 1 + min{max(''W''(''n'' &minus; 1, ''x'' &minus; 1), ''W''(''n'',''k'' &minus; ''x'')): ''x'' = 1, 2, ..., ''k'' }