D2 June 2006 Q5

EdexcelOld spec12 marksDynamic Programming

5. Victor owns some kiosks selling ice cream, hot dogs and soft drinks.

The network below shows the choices of action and the profits, in thousands of pounds, they generate over the next four years. The negative numbers indicate losses due to the purchases of new kiosks.

Directed network from S to T through A to K with profits and losses on the arcs

Use a suitable algorithm to determine the sequence of actions so that the profit over the four years is maximised and state this maximum profit. (12)