Mathster Maths topics Free worksheets Coverage Mathster for schools

Maths topics › A level Further Maths › D2, dynamic and programming

Use dynamic programming to solve shortest and longest path problems (A level only)

A level Further Maths · D2, dynamic and programming

A question

A firm plans its decisions over the next few years. The network shows the profit, in thousands of pounds, from each decision; a negative number is a loss. The firm wants the greatest total profit from \(S\) to \(T\).
Use dynamic programming, working backwards from \(T\). Complete the table (stage, state, action, destination, value), mark with * the best action for each state, and state the best route and the greatest total profit.

Free worksheet

10 questions on this objective, ready to print.

Download the worksheet (PDF)

We use this address to send you the answers, and for news only if you tick the box.

Worked solution

The working

  1. This is a longest route problem: at each vertex keep the greatest of (arc value + value at the next vertex).
  2. (a) \(76\).   (b) The value at \(S\) is \(142\), a total profit of \(142\) thousand pounds.   (c) \(SCDGJT\).

Mathster is maths homework, practice and assessment for schools, with animated worked solutions. Try Mathster free for 60 days →

Objectives from the AS and A level subject content for further mathematics (Department for Education). Contains public sector information licensed under the Open Government Licence v3.0.