Worked solution
Identify the stages, states and arcs of the network
Dynamic programming labels each state by the stage it belongs to; a route uses exactly one arc per stage from the source to the sink.
Work backwards from the final stage, giving each state its optimal value
Starting at the stage just before the sink and moving back one stage at a time, each state is given its best value using the values already found at the next stage.
Trace the optimal route forwards from the source
Following the optimal choice recorded at each state gives the route, whose arc values add up to the optimal total.
State the minimum total cost
The least possible total cost of a route from to is .