Question 1
OCR B (MEI) Further Maths June 2018 Modelling with algorithms (Y413-01)AS11 marks
On the specification
- (i)
- N1–N13 Modelling with Algorithms (Y413): Networks
- (ii)
- N1–N13 Modelling with Algorithms (Y413): Networks
- (iii)
- N1–N13 Modelling with Algorithms (Y413): Networks
Question text
1 Fig. 1 shows a network. The weights on the arcs are distances. B 14 F 2 I 7 10 11 21 G 13 C 4 8 15 17 A 2 E 12 19 10 D H Fig. 1 (i) Apply Dijkstra’s algorithm to the copy of the network in the Printed Answer Booklet to find the shortest path from A to H. State each of the following. • the shortest path • its length [6] A problem requires a spanning tree that must include the arcs AD and GH. (ii) The arcs AD and GH are chosen first. Apply Kruskal’s algorithm to the ordered list of arcs in the Printed Answer Booklet to complete the tree. You should draw your tree and give its total length. [4] (iii) How could you modify the network in Fig. 1 so that Prim’s algorithm would find a spanning tree that includes arcs AD and GH? [1]