AS June 2025 Q1

EdexcelAS paperCurrent spec7 marksAlgorithmsMinimum Spanning Trees

1.

16102530131228222320

The list of ten numbers above is to be sorted into ascending order.

(a) Carry out a bubble sort, starting at the left-hand end of the list, to produce the sorted list. You should only give the state of the list after each pass. (3)
Figure 1: weighted network on vertices A to F with arcs AB 13, AC 10, AD 30, BC 12, BE 22, BF 23, CF 20, CD 28, DF 25, EF 16
Figure 1
(b) Use Prim’s algorithm, starting at A, to find the minimum spanning tree for the network in Figure 1. You must list the arcs in the order in which you select them. (2)
(c)
(i) Draw the minimum spanning tree on Diagram 1 in the answer book.
Diagram 1: the vertices A to F of Figure 1 with no arcs
Diagram 1
(ii) Find the weight of the minimum spanning tree. (2)