Beruflich Dokumente
Kultur Dokumente
1. Index Card
2. Join FB Group Beadle Assignment
3. Read Chapter 12 Deterministic
Dynamic Programming
Reminders for Feb 2, 2016
X1 X2 X3 X4 X5
Stagecoach Problem
2 5
1 3 6 10
4 7
Find the shortest route from the source node 1 and the
terminal node 10
From QMT 127 -> Acyclic Digraph Algorithm
Stagecoach Problem
2 5
8
1
1 3 6 0
9
4 7
1 2 3 4 5 6 7 8 9 10
1 3 9 2
2 3 8
3 1 6 4
4 5 6
5 3 2
6 4 3
7 1 2
8 3
9 2
Stagecoach Problem
Determine the shortest route to travel from Node 1 to Node 10
given the distances between cities in the tables below
2 3 4 8 9
1 3 9 2 5 3 2
6 4 3
7 1 2
5 6 7 10
2 3 8 X 8 3
3 1 6 4 9 2
4 X 5 6
Some Definitions
s
xk
fk(s, xk)
xk*
fk*(s)
Characteristics of a DP Problem
1. It can be divided into stages
4. Given the current state sk at the kth stage, an optimal policy for the
remaining stages is independent of the decisions in the (k-1)st , (k-
2)st , 1st stage.
Item wi ri
1 2 31
2 3 47
3 1 14
Starwars Problem
General Leia is planning an all-out assault on the First Orders
Star Killer Base to prevent the destruction of the galaxy.
However, because of how depleted the rebel group has
become, she must seek to maximize the overall damage on
Star Killer Base given only a fleet of 20 ships by selecting
which areas they should attack. She has enlisted a promising
young Jedi: OR-Wan Kenobi, and his skills in Dynamic
Programming of the Force to help her decide on the plan of
attack. OR-Wan was given the table below with the damage
score and the required number of ships to achieve that
damage on the base. Use Dynamic Programming to determine
which areas the rebel group should attack.
Starwars Problem Cont.
Excess resistors over the weekly requirement during week will incur a
cost per resistor. Installing new resistors during week means stopping
the equipment and incurring a fixed cost of and a variable cost of
where is the number of new resistors installed. Removing resistors on the
other hand is much easier, only incurring a variable cost of where
is the number of resistors removed. Assume that the weekly
requirement must be met (there could be excess resistors but never a
deficit).