Question 2

OCR B (MEI) Further Maths June 2024 Modelling with algorithms (Y433-01)A level12 marks

On the specification

(a)
N5-N7 Modelling with Algorithms: Minimum connector and shortest path algorithms
(b)(i)
N5-N7 Modelling with Algorithms: Minimum connector and shortest path algorithms
(b)(ii)
N5-N7 Modelling with Algorithms: Minimum connector and shortest path algorithms
(c)
AN1-N2 Modelling with Algorithms: Graphs and modelling with graphsN3-N4 Modelling with Algorithms: Networks and network modelling
(d)
N13 Modelling with Algorithms: Solving network problems using technologyN5-N7 Modelling with Algorithms: Minimum connector and shortest path algorithms
Question text

2 The table shows the distance, in kilometres, along the direct roads between eight towns, A to H. A dash (-) indicates that there is no direct road linking the towns. A B C D E F G H A - 31 21 - - - - - B 31 - 8 12 - - 10 20 C 21 8 - 24 - 35 20 36 D - 12 24 - 30 - - - E - - - 30 - 12 40 10 F - - 35 - 12 - - 25 G - 10 20 - 40 - - 15 H - 20 36 - 10 25 15 - (a) Use Dijkstra’s algorithm to find the shortest path from A to E for the network shown in the table. [5] (b) (i) Apply the tabular form of Prim’s algorithm on the diagram in the Printed Answer Booklet, starting at vertex A, to find the total length of the arcs in the minimum spanning tree for the network shown in the table. [3] (ii) On the vertices provided in the Printed Answer Booklet draw the minimum spanning tree for this network. [1] (c) Write down the length of the shortest path from A to F which passes through all the towns except D. [1] (d) A computer takes 0.016 secs to solve the minimum connector problem on the network shown in the table using Prim’s algorithm. Approximately how long will it take the computer to solve the minimum connector problem on a network with 1000 edges using Prim’s algorithm? [2]