Question 6
OCR B (MEI) Further Maths June 2022 Modelling with algorithms (Y433-01)A level11 marks
On the specification
- (a)
- N5-N7 Modelling with Algorithms: Minimum connector and shortest path algorithms
- (b)(i)
- AL1-L6 Modelling with Algorithms: Formulating linear programs
- (b)(ii)
- AL1-L6 Modelling with Algorithms: Formulating linear programs
- (b)(iii)
- AL1-L6 Modelling with Algorithms: Formulating linear programs
- (c)(i)
- L17-L18 Modelling with Algorithms: Software for LP and ILP
- (c)(ii)
- L17-L18 Modelling with Algorithms: Software for LP and ILPN3-N4 Modelling with Algorithms: Networks and network modelling
Question text
6 Fig. 6.1 shows a weighted graph. The weights represent arc lengths. A 15 32 B 16 29 11 C 10 20 D 12 37 17 8 6 F E 16 7 G Fig. 6.1 (a) Apply Dijkstra’s algorithm to the copy of the network in the Printed Answer Booklet to find the shortest path from A to G. [5] An LP formulation is set up to find the longest route between A and G in Fig. 6.1 subject to the conditions that no arc can be repeated but nodes B, C, D, E and F can be passed through more than once. Maximise 15AB + 32AC + 29AD + 37AE + 16BC + 11BD + 20BE + 16CB + 12CE + 10CF + 11DB + 8DE + 17DF + 12EC + 16EG + 10FC + 17FD + 6FE + 7FG Subject to AB + AC + AD + AE = 1 EG + FG = 1 AB + CB + DB - BC - BD - BE = 0 AC + BC + EC + FC - CB - CE - CF = 0 AD + BD + FD - DB - DE - DF = 0 AE + BE + CE + DE + FE - EC - EG = 0 CF + DF - FC - FD - FE - FG = 0 BD + DB G 1 BC + CB G 1 CE + EC G 1 CF + FC G 1 DF + FD G 1 BE G 1 DE G 1 FE G 1 (b) Explain the purpose of the following lines in the LP formulation (i) AB + AC + AD + AE = 1 [1] (ii) CF + DF - FC - FD - FE - FG = 0 [1] (iii) CE + EC G 1 [1] The LP is run in a solver and the following output is shown in the table in Fig. 6.2. VARIABLE VALUE AB 0.000000 AC 1.000000 AD 0.000000 AE 0.000000 BC 0.000000 BD 0.000000 BE 1.000000 CB 1.000000 CE 0.000000 CF 1.000000 DB 0.000000 DE 1.000000 DF 0.000000 EC 1.000000 EG 1.000000 FC 0.000000 FD 1.000000 FE 0.000000 FG 0.000000 Fig. 6.2 (c) (i) Find the length of the longest route from A to G given by the output in Fig. 6.2. [1] (ii) State all possible corresponding longest routes from A to G. [2]