Question 5
OCR B (MEI) Further Maths November 2021 Modelling with algorithms (Y413-01)AS16 marks
On the specification
- (a)
- N1–N13 Modelling with Algorithms (Y413): NetworksAL1, L2–L18 Modelling with Algorithms (Y413): Linear programming
- (b)
- N1–N13 Modelling with Algorithms (Y413): Networks
- (c)(i)
- N1–N13 Modelling with Algorithms (Y413): Networks
- (c)(ii)
- N1–N13 Modelling with Algorithms (Y413): Networks
- (d)
- AL1, L2–L18 Modelling with Algorithms (Y413): Linear programmingN1–N13 Modelling with Algorithms (Y413): Networks
- (e)
- AL1, L2–L18 Modelling with Algorithms (Y413): Linear programmingN1–N13 Modelling with Algorithms (Y413): Networks
- (f)
- A1–A11 Modelling with Algorithms (Y413): Algorithms
Question text
5 An LP formulation to find the shortest path from A to G in a directed network with seven vertices, A, B, …, G is given below. Minimise 15AB + 28AC + 31AD + 17BE + 17EB + 10BC + 10CB + 42BG + 30CG + 19CF + 19FC + 11DF + 30DG + 8EF + 22EG + 13FG subject to AB + AC + AD = 1 BG + CG + DG + EG + FG = 1 AB + CB + EB - BC - BE - BG = 0 AC + BC + FC - CB - CF - CG = 0 AD - DF - DG = 0 BE - EB - EF - EG = 0 CF + DF + EF - FC - FG = 0 (a) Explain why • two of the constraint equations are equal to 1, • five of the constraint equations are equal to 0. [2] (b) Using the vertices given in the Printed Answer Booklet draw a directed network with 13 arcs to represent the information given in the formulation above. Two of the arcs are directed and the rest are undirected. The arcs from A and the arcs to G may be regarded as being undirected. [2] (c) (i) Apply Dijkstra’s algorithm to the network drawn in part (b), to find the length of the shortest path from A to G. [5] (ii) Write down the shortest path from A to G. [1] An eighth vertex, X, is added to the network. The table in Fig. 5.1 shows the corresponding weights between each pair of vertices for which there is a connecting arc. A B C D E F G X - - 5 - - 4 x Fig. 5.1 It is given that x is a positive integer and all arcs from vertex X are undirected. (d) State what changes need to be made to the original LP formulation when X is included as an eighth vertex in the network. [3] For a certain value of x, the complete LP for the network with eight vertices was run in an LP solver and the output is shown in the table in Fig. 5.2. Variable Value AB 1.000000 AC 0.000000 AD 0.000000 BC 1.000000 BE 0.000000 BG 0.000000 CB 0.000000 CF 0.000000 CG 0.000000 CX 1.000000 DF 0.000000 DG 0.000000 EB 0.000000 EF 0.000000 EG 0.000000 FC 0.000000 FG 0.000000 FX 0.000000 XC 0.000000 XF 0.000000 XG 1.000000 Fig. 5.2 (e) State the maximum value of x that is consistent with this solution. [1] (f) A computer takes 0.018 seconds to solve a shortest path problem on a network with eight vertices using Dijkstra’s algorithm. Approximately how long will it take the computer to solve a shortest path problem on a network with eight hundred vertices using Dijkstra’s algorithm? [2]