D1 June 2009 Q6

EdexcelOld spec7 marksShortest Path

6.

Figure 4: network of roads with vertices A to I and lengths in km
Figure 4

Figure 4 represents a network of roads. The number on each arc gives the length, in km, of that road.

(a) Use Dijkstra’s algorithm to find the shortest distance from A to I. State your shortest route. (6)
(b) State the shortest distance from A to G. (1)