Aaliyah is organising a charity obstacle-course event with five checkpoints, P, Q, R, S, T, linked by permanently open trail paths. The distances between checkpoints connected by a trail, in metres, are: PQ = 120, PR = 200, PS = 340, QR = 90, QT = 260, RS = 150, RT = 210, ST = 180 (there is no direct trail between any other pair of checkpoints).
(a)The organisers need to run a single length of event cable connecting all five checkpoints, using the least total length of cable. Use Kruskal's algorithm to find this minimum length, showing the edges you accept and at least one edge you reject, with a reason.(4)
(b)A safety marshal, Owen, must travel from the checkpoint at P to the checkpoint at T, using the original trail network (not necessarily the minimum cable route found in part (a)). Use Dijkstra's algorithm, starting at P, to find the length of the shortest route from P to T. Show the order in which each checkpoint receives its final label, and state the shortest route.(5)
(c)Crates of bottled water, of mass 14, 22, 9, 18, 27, 11 and 16 kg, must be loaded into vans, each with a capacity of 45 kg. Calculate a lower bound for the number of vans required, then apply first-fit decreasing to pack the crates. State the contents of each van, and state whether the lower bound has been achieved.(4)
(Total for Question 13 is 13 marks)