A2 June 2024 Q6

EdexcelCurrent spec10 marksDynamic Programming

6.

Figure 2: staged directed network from S to T with arcs SA 3, SB 2, AC 4, AE 5, BC 4, BD 7, BE 4, CF 3, CG 4, DF 3, DG 1, EG 2, FH 5, FI 4, FJ 6, GH 5, GI 3, HT 2, IT 3, JT 4
Figure 2

The staged, directed network in Figure 2 represents the roads that connect 12 towns, S, A, B, C, D, E, F, G, H, I, J and T. The number on each arc shows the time, in hours, it takes to drive between these towns.

Elena plans to drive from S to T. She must arrive at T by 9 pm.

(a) By completing the table in the answer book, use dynamic programming to find the latest time that Elena can start her journey from S to arrive at T by 9 pm. (9)

[The table in the answer book has columns headed Stage, State, Action, Destination and Value.]

(b) Hence write down the route that Elena should take. (1)