Minimum spanning treesEdexcel International A Level Maths: Mind map
Spanning tree
Kruskal's
Minimum spanning trees
connect everything at least cost
treeKruskalPrimmatrix
Prim's
Matrices
Exam tips
Exam questions on Minimum spanning trees
- A network has five vertices , , , and . The arcs and their weights are , , , , , and .Use Kruskal's algorithm to find a minimum spanning tree for the network. List the arcs in the order in which you consider them, stating whether each is accepted or rejected, and find the total weight of the tree.2 marks
- A network has five vertices , , , and , shown by the following distance matrix. A dash means there is no arc. The rows, in order, are:
: , 12, 9, 15,
: 12, , 8, , 14
: 9, 8, , 11, 10
: 15, , 11, , 6
: , 14, 10, 6,
The columns are in the same order , , , , .Starting at , use Prim's algorithm to find a minimum spanning tree. State the order in which the arcs are added and the total weight of the tree.2 marks
- A water company must connect six villages to with pipes. The possible pipes and their costs, in thousands of pounds, are , , , , , , , and . Every village must be connected to every other village, directly or through other villages, at minimum total cost.Use Kruskal's algorithm to find a minimum spanning tree, showing the order in which you consider the arcs, and state the minimum cost.3 marks
Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).