Question 3
OCR B (MEI) Further Maths June 2022 Modelling with algorithms (Y413-01)AS10 marks
On the specification
- (a)
- N1–N13 Modelling with Algorithms (Y413): Networks
- (b)(i)
- N1–N13 Modelling with Algorithms (Y413): Networks
- (b)(ii)
- N1–N13 Modelling with Algorithms (Y413): Networks
- (c)
- N1–N13 Modelling with Algorithms (Y413): Networks
Question text
3 In Fig. 3 the weights of the arcs represent distances. A 10 H 20 9 50 B G 85 31 23 7 42 5 37 C 14 D F 29 6 E Fig. 3 Dijkstra’s algorithm is to be used once to find both the shortest path from A to C and the shortest path from C to G. (a) State which vertex should be chosen as the start vertex. [1] (b) (i) On the copy of the network in the Printed Answer Booklet, apply Dijkstra’s algorithm (with the starting vertex stated in part (a)) to find both the shortest path from A to C and the shortest path from C to G. [5] (ii) State the weight of the shortest route from A to F via C. [1] (c) Apply Prim’s algorithm, starting at A, to find the minimum spanning tree for the network in Fig. 3. • State the order in which the arcs were included in the tree. • Draw the minimum spanning tree. [3]