Question 3

OCR B (MEI) Further Maths June 2019 Modelling with algorithms (Y413-01)AS10 marks

On the specification

(a)
N1–N13 Modelling with Algorithms (Y413): Networks
(b)
N1–N13 Modelling with Algorithms (Y413): Networks
(c)
N1–N13 Modelling with Algorithms (Y413): Networks
Question text

3 A network has 9 vertices, A to I. The table in Fig. 3 shows the distance between each pair of vertices for which there is a connecting arc. A B C D E F G H I A 5 8 16 B 5 2 4 11 C 8 2 8 1 D 16 8 2 E 2 3 5 F 4 1 3 2 12 G 11 2 H 2 2 7 I 5 12 7 Fig. 3 (a) Apply the tabular form of Prim’s algorithm to the network, starting at vertex A, to find a minimum spanning tree for the network. In your solution you should give • the order in which the arcs are selected, and • the total length of the arcs in the minimum spanning tree. [4] (b) Without drawing the network, use Dijkstra’s algorithm to find the shortest route from A to I. [5] (c) Determine the length of the shortest route from C to G via A. [1]