Question 2

OCR B (MEI) Further Maths November 2020 Modelling with algorithms (Y433-01)A level10 marks

On the specification

(a)
N5-N7 Modelling with Algorithms: Minimum connector and shortest path algorithms
(b)
N5-N7 Modelling with Algorithms: Minimum connector and shortest path algorithms
(c)
N5-N7 Modelling with Algorithms: Minimum connector and shortest path algorithms
(d)
N5-N7 Modelling with Algorithms: Minimum connector and shortest path algorithmsN13 Modelling with Algorithms: Solving network problems using technology
Question text

2 The table in Fig. 2 shows the distances, in miles, along the direct roads between ten villages, A to J. A dash (–) indicates that there is no direct road linking the villages. A B C D E F G H I J A – 9 – 10 13 2 17 6 – – B 9 – 14 – – – 10 7 2 10 C – 14 – 8 18 7 – 6 – 5 D 10 – 8 – – 16 – 11 – 15 E 13 – 18 – – – 7 – – 8 F 2 – 7 16 – – 13 10 9 – G 17 10 – – 7 13 – 13 11 – H 6 7 6 11 – 10 13 – – 9 I – 2 – – – 9 11 – – – J – 10 5 15 8 – – 9 – – Fig. 2 (a) Apply the tabular form of Prim’s algorithm to the network, starting at vertex D, to find a minimum spanning tree for the network. [2] (b) State the total length of the arcs in the minimum spanning tree. [1] (c) Use Dijkstra’s algorithm to determine the length of the shortest path from G to J via D. [5] (d) A computer takes 0.25 secs to solve a shortest path problem on a network with 15 vertices using Dijkstra’s algorithm. Approximately how long will it take the computer to solve a shortest path problem on a network with 300 vertices using Dijkstra’s algorithm? [2]