Question 3
OCR B (MEI) Further Maths June 2017 Decision mathematics 2 (4772-01)Older specification20 marks
On the specification
- (a)(i)
- AA1-A5 Modelling with Algorithms: Algorithms, basic ideas and complexityN5-N7 Modelling with Algorithms: Minimum connector and shortest path algorithms
- (a)(ii)
- AA1-A5 Modelling with Algorithms: Algorithms, basic ideas and complexity
- (a)(iii)
- N5-N7 Modelling with Algorithms: Minimum connector and shortest path algorithmsAA1-A5 Modelling with Algorithms: Algorithms, basic ideas and complexity
- (a)(iv)
- N5-N7 Modelling with Algorithms: Minimum connector and shortest path algorithmsAA1-A5 Modelling with Algorithms: Algorithms, basic ideas and complexity
- (b)(i)
- N5-N7 Modelling with Algorithms: Minimum connector and shortest path algorithms
- (b)(ii)
- A6 Modelling with Algorithms: Heuristic algorithms
- (b)(iii)
- N3-N4 Modelling with Algorithms: Networks and network modelling
Question text
3 (a) Consider applying Floyd’s algorithm to a complete undirected network on 5 vertices to find the complete network of shortest routes. (i) How many comparisons are needed during the first iteration? [1] (ii) How many comparisons are needed in total? [1] Now consider repeatedly applying Dijkstra’s algorithm to a complete undirected network on 5 vertices. The first iteration finds all of the shortest routes from the first vertex. In the second iteration the first vertex and its arcs are deleted and all of the shortest routes are found from the second vertex … and so on. (iii) How many comparisons are needed during the first iteration? [2] (iv) How many comparisons are needed in total? [2] (b) The unbracketed numbers in the table give direct distances between the vertices of a network, where direct connections exist. These are also the shortest distances. The bracketed numbers give shortest indirect distances, where no direct connections exist. A B C D E F A 32 27 (54) 41 31 B 32 38 22 45 33 C 27 38 (47) 18 (58) D (54) 22 (47) 29 23 E 41 45 18 29 (52) F 31 33 (58) 23 (52) (i) By deleting A and its arcs, and by finding a minimum connector for the remaining vertices, construct a lower bound for the solution to the travelling salesperson problem in this network. [4] (ii) Make three attempts to apply the nearest neighbour algorithm to find a good solution to the TSP. Start at vertex A for your first attempt, at vertex B for your second attempt and at vertex C for your final attempt, and give the best of your attempts. [3] (iii) Use the route inspection algorithm to find an optimal solution to the Chinese postperson problem in the network. Give an optimal route. [7]