D1 June 2013 Q4

EdexcelOld spec8 marksShortest Path

4.

Figure 3: network of roads S, A, B, C, D, E, F, G, H, T with lengths in miles
Figure 3

Figure 3 represents a network of roads. The number on each arc represents the length, in miles, of the corresponding road. Liz wishes to travel from S to T.

(a) Use Dijkstra’s algorithm to find the shortest path from S to T. State your path and its length. (6)

On a particular day, Liz must include F in her route.

(b) Find the shortest path from S to T that includes F, and state its length. (2)