D1: Algorithms on graphsEdexcel International A Level Maths: Topic test
20 questions, 54 marks
Edexcel International A Level Maths
D1: Algorithms on graphs topic test
Total 54 marks
Name
Class
Date
- 1A graph has vertices , , , and , and edges , , , , and .(a)How many vertices of have odd degree?[1 mark]
- A
- B
- C
- D
(b)Which of the following is a cycle in ?[1 mark]- A
- B
- C
- D
(c)State the number of edges in any spanning tree of , and list the edges of one spanning tree of .[2 marks]Total for question 1: 4 marks
- 2The complete graph has 7 vertices, and every pair of vertices is joined by exactly one edge.(a)How many edges does have?[1 mark]
- A
- B
- C
- D
(b)How many edges does a spanning tree of have?[1 mark]- A
- B
- C
- D
(c)Show that the sum of the degrees of the vertices of is twice the number of edges of .[2 marks]Total for question 2: 4 marks
- 3A network joins six stations , , , , and . The cost of laying cable along each possible route, in hundreds of pounds, is: , , , , , , , and . The stations are to be connected at minimum total cost.(a)Use Kruskal's algorithm to find a minimum spanning tree. List the arcs in the order in which they are accepted, and state the total weight of the tree.[3 marks](b)Use Prim's algorithm, starting at , to find the minimum spanning tree. List the arcs in the order in which they are selected, and state the total weight of the tree.[4 marks]
Total for question 3: 7 marks
- 4A courier network joins seven depots , , , , , and . The road lengths, in km, are: , , , , , , , , , and . There are no other direct roads.(a)Use Dijkstra's algorithm to find the shortest route from to . Show the order in which the depots are given permanent labels and the working values at each stage, and state the route and its length.[6 marks](b)(i) Write down the vertices of odd degree, and show that the sum of the degrees of all the vertices is consistent with the number of roads.[6 marks]
(ii) Use Kruskal's algorithm to find a minimum spanning tree for the network, listing the arcs accepted and rejected, and state its total weight.Total for question 4: 12 marks
- 5Kruskal's algorithm is applied to a network with five vertices , , , and . The arcs, in increasing order of weight, are , , , , , and .(a)Which arc is the first to be rejected?[1 mark]
- A
- B
- C
- D
(b)Find the total weight of the minimum spanning tree.[1 mark]- A
- B
- C
- D
(c)Use Prim's algorithm, starting at , and list the arcs in the order in which they are selected.[2 marks]Total for question 5: 4 marks
- 6Dijkstra's algorithm is used to find the shortest route from to in a network with five vertices , , , and . The arcs and their lengths are , , , , , and .(a)Find the final label of vertex .[1 mark]
- A
- B
- C
- D
(b)Find the shortest route from to .[1 mark]- A
- B
- C
- D
(c)The working value of is 13 after is given its permanent label, but it is 9 after is given its permanent label. Explain why the working value changes.[2 marks]Total for question 6: 4 marks
- 7A tree has 10 vertices. Exactly 6 of the vertices have degree 1, and the other 4 vertices all have the same degree.(a)Find the degree of each of the 4 vertices that do not have degree 1.[3 marks](b)A connected graph has 10 vertices and 12 edges.[4 marks]
(i) State the number of edges in a spanning tree of .
(ii) Find the number of edges that must be removed from to leave a spanning tree.
(iii) Explain why any 3 edges of cannot simply be removed.Total for question 7: 7 marks
- 8A network joins six sensors , , , , and . The lengths of the possible cables, in metres, are: , , , , , , , , and .(a)Use Prim's algorithm, starting at , to find a minimum spanning tree. List the arcs in the order in which they are selected, and state the total weight of the tree.[6 marks](b)(i) Use Dijkstra's algorithm to find the shortest route from to , showing the working values, and state its length.[6 marks]
(ii) Find the length of the route from to that uses only cables in the minimum spanning tree from (a), and explain why it is not the shortest route.Total for question 8: 12 marks
End of questions
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).