A2 October 2021 Q3

3.

ABCDEFGH
A–24424834373222
B24–403530413944
C4240–2126453836
D483521–32372927
E34302632–344028
F3741453734–4341
G323938294043–38
H22443627284138–

Table 1

Table 1 shows the shortest distances, in miles, between eight towns, A, B, C, D, E, F, G and H.

(a) Use Prim’s algorithm, starting at A, to find the minimum spanning tree for this table of distances. You must clearly state the order in which you select the edges of your tree. (3)
(b) State the weight of the minimum spanning tree. (1)
ABCDEFGH
J3127502943254935

Table 2

Table 2 shows the distances, in miles, between town J and towns A, B, C, D, E, F, G and H.

Pranav needs to visit all of the towns, starting and finishing at J, and wishes to minimise the total distance he travels.

(c) Starting at J, use the nearest neighbour algorithm to obtain an upper bound for the length of Pranav’s route. You must state your route and its length. (2)
(d) Starting by deleting J, and all of its edges, find a lower bound for the length of Pranav’s route. (2)