Algorithms on graphs I (part 2).pdf
Algorithms on graphs I (part 2).pdf
1 Figure 5 shows roads connecting five towns. The numbers show distances in
kilometres.
Figure 5
These are the distance and route matrices after the third iteration of Floyd’s
algorithm:
© Pearson Education Ltd 2018. Copying permitted for purchasing institution only. This material is not copyright free. 1
Decision Mathematics 1 Unit Test 7: Algorithms on graphs I (part 2)
2 Figure 6 shows a network with the weights on the arcs representing distances.
Figure 6
b Explain how to use your final matrix to find the shortest route from vertex A to
vertex C.
State this distance. (3 marks)
© Pearson Education Ltd 2018. Copying permitted for purchasing institution only. This material is not copyright free. 2