D1 January 2008 Q2

EdexcelOld spec10 marksAlgorithmsMinimum Spanning Trees

2.

(a)
18201171715142123169

The list of numbers shown above is to be sorted into ascending order. Apply quick sort to obtain the sorted list. You must make your pivots clear. (5)

Figure 3: network of paths with vertices A to I and arc lengths in metres
Figure 3

Figure 3 represents a network of paths in a park. The number on each arc represents the length of the path in metres.

(b) Using your answer to part (a) and Kruskal’s algorithm, find a minimum spanning tree for the network in Figure 3. You should list the arcs in the order in which you consider them and state whether you are adding it to your minimum spanning tree. (4)
(c) Find the total weight of the minimum spanning tree. (1)