Decision Maths: Graphs, Trees and Minimum Spanning Trees - Worksheets, Questions and Revision

12 original exam-style questions - 5 pages of questions with a full mark scheme - free printable PDF.

Download PDFJump to mark scheme (page 6)
« Previous: Decision Maths: Algorithms, Sorting and Bin PackingNext: Decision Maths: Shortest Paths and Route Inspection »
Revision Library
revisionlibrary.co.uk
A-Level · AQA

FP.D2 Decision Maths: Graphs, Trees and Minimum Spanning Trees

AQA 7367 · Calculator allowed · about 120 minutes
Total Marks
Name: _______________________________    Date: ____ / ____ / ______
Answer ALL questions. Show all your working.
1
The graph G has vertex set {A, B, C, D, E} and edge set {AB, AC, BC, BD, CE, DE} (the graph is unweighted).
(a)State what is meant by a tree in graph theory.(1)
(b)State what is meant by a spanning tree of a connected graph.(1)
(c)For the graph G, state (i) the order of G, (ii) the size of G.(2)
(d)Determine, with justification, whether G is a tree.(2)
(e)State the number of edges in the complete graph K6.(1)
(Total for Question 1 is 7 marks)
2
This question concerns the relationship between the degrees of the vertices of a graph and its number of edges.
(a)State the handshaking lemma, relating the sum of the degrees of the vertices of a graph to its number of edges.(1)
(b)A graph has 8 vertices and 11 edges. Find the sum of the degrees of its vertices.(2)
(c)A graph has degree sequence 4, 3, 3, 2, 2, 1, 1. Find the number of edges in the graph.(2)
(d)Explain why the number of vertices of odd degree in any graph must be even.(1)
(Total for Question 2 is 6 marks)
3
This question concerns the number of edges in a spanning tree.
(a)State the number of edges in a spanning tree of a connected graph with n vertices, in terms of n.(1)
(b)Hence write down the number of edges in a spanning tree of a connected graph with 9 vertices.(1)
(c)A connected graph has a spanning tree with 12 edges. State the number of vertices in the graph.(1)
(d)A connected network has 10 vertices and 15 edges. State how many edges must be removed to reduce the network to a spanning tree.(2)
(Total for Question 3 is 5 marks)
4
A network of relay stations A, B, C, D, E, F, G is to be connected by fibre-optic cable. The possible direct links and their lengths, in km, are: AB=5, AC=8, AD=10, BC=3, BE=7, CD=4, CE=6, CF=9, DF=5, EF=2, EG=8, FG=3. Kruskal's algorithm is to be used to find a minimum spanning tree for this network.
(a)State the two key steps of Kruskal's algorithm for finding a minimum spanning tree.(2)
(b)Apply Kruskal's algorithm to the network, listing the edges in the order they are considered and stating whether each is accepted or rejected.(5)
(c)State the total weight of the minimum spanning tree found in part (b).(1)
(d)Verify that the tree found in part (b) uses the correct number of edges for a spanning tree of this network.(1)
(e)A new relay station, H, is to be added, connected only to G by a new link GH = 5 km, at a cost of £3000 per km. State the new total weight of the minimum spanning tree once H is included, and find the total cost of the resulting network.(2)
(Total for Question 4 is 11 marks)
5
Six towns P, Q, R, S, T, U are to be linked by a new cable network. The possible direct routes and their lengths, in km, are: PQ=6, PR=9, PS=13, QR=4, QT=8, RS=5, RT=7, ST=6, SU=11, TU=3. Prim's algorithm, starting at P, is to be used to find a minimum spanning tree for this network.
(a)State how Prim's algorithm builds up a minimum spanning tree from a given starting vertex.(2)
(b)Apply Prim's algorithm to the network, starting at vertex P. Show the order in which vertices are added to the tree and the edge chosen at each step.(6)
(c)State the total weight of the minimum spanning tree found in part (b).(1)
(d)State two advantages of using Prim's algorithm, rather than Kruskal's algorithm, when working by hand with a large network given as a distance matrix.(2)
(Total for Question 5 is 11 marks)
6
The table below shows the direct distances, in km, between six market towns A, B, C, D, E, F that a regional council wishes to connect with a new fibre-optic network, following existing roads only where a distance is given (a dash indicates no direct road).
A B C D E F
A - 12 - 9 - 14
B 12 - 7 - 11 -
C - 7 - 6 10 8
D 9 - 6 - 5 -
E - 11 10 5 - 4
F 14 - 8 - 4 -
(a)State the number of edges required in a minimum spanning tree connecting all 6 towns.(1)
(b)Use Prim's algorithm, starting at A, to find a minimum spanning tree for this network. Show, at each stage, the town added to the tree and the length of road used to connect it.(9)
(c)State the total length of cable required for the minimum spanning tree found in part (b).(1)
(d)Verify your answer to part (c) by applying Kruskal's algorithm to the same network and comparing the total weight obtained.(2)
(Total for Question 6 is 13 marks)
7
A network has vertices A, B, C, D and edges AB=3, AC=3, BC=5, BD=4, CD=4 (weights in km).
(a)Apply Kruskal's algorithm to find the total weight of a minimum spanning tree for this network.(3)
(b)State two different edge sets that both give a minimum spanning tree of total weight 10, and explain why both are valid minimum spanning trees.(2)
(c)State whether Prim's algorithm, started at vertex A, could also produce either of the two trees found in part (b). Give a reason.(1)
(Total for Question 7 is 6 marks)
8
Five villages, Ashcombe (A), Bramwell (B), Corbridge (C), Dunley (D) and Elsworth (E), are to be connected by underground fibre-optic cable. The possible direct routes and their lengths are: AB=3.2 km, AC=5.6 km, BC=2.4 km, BD=4.1 km, CD=3.0 km, CE=6.5 km, DE=2.8 km. The cost of laying cable is £850 per km.
(a)State the number of edges needed to connect all 5 villages in a minimum spanning tree.(1)
(b)Use Kruskal's algorithm to find a minimum spanning tree for this network, showing the order in which edges are considered and whether each is accepted or rejected.(5)
(c)Given the cost of laying cable stated above, find the total cost of connecting all 5 villages using the minimum spanning tree found in part (b).(2)
(Total for Question 8 is 8 marks)
9
Discuss the similarities and differences between Kruskal's algorithm and Prim's algorithm for finding a minimum spanning tree of a connected network. Your answer should refer to how each algorithm selects edges, how each avoids forming a cycle, and which algorithm is generally more efficient to apply by hand to a large, dense network given as a distance matrix.
(Total for Question 9 is 7 marks)
10
The table below represents a network of possible cable routes, with distances in km, between four substations K, L, M, N (a dash indicates no direct route).
K L M N
K - 6 - 9
L 6 - 5 7
M - 5 - 4
N 9 7 4 -
(a)Use Kruskal's algorithm to find a minimum spanning tree for the network represented by the matrix above, showing the edges in the order considered.(4)
(b)State the two edges of the network that were not required in the minimum spanning tree, and explain why neither could reduce the total weight if used instead of an edge already chosen.(2)
(Total for Question 10 is 6 marks)
11
A network has vertices P, Q, R, S and edges PQ=4, PR=6, PS=9, QR=3, QS=7, RS=5 (weights in km). A student claims that {PQ, PR, RS} is the minimum spanning tree for this network, with total weight 15 km.
(a)Explain why {PQ, PR, RS} is a valid spanning tree for this network, but state whether it is necessarily the minimum spanning tree.(2)
(b)Use Kruskal's algorithm to find the actual minimum spanning tree for this network, state its total weight, and hence confirm whether the tree given above is the minimum spanning tree.(4)
(Total for Question 11 is 6 marks)
12
This question concerns the sum of the degrees of the vertices of a tree.
(a)State the number of edges in a tree with n vertices.(1)
(b)Hence show that the sum of the degrees of the vertices of a tree with n vertices is 2(n - 1).(2)
(c)A tree has 15 vertices. Find the sum of the degrees of its vertices.(2)
(Total for Question 12 is 5 marks)
Mark scheme · FP.D2 Decision Maths: Graphs, Trees and Minimum Spanning Trees

Question 1

Question 2

Question 3

Question 4

Question 5

Question 6

Question 7

Question 8

Question 9

Question 10

Question 11

Question 12