Decision Mathematics 1: Algorithms on graphsEdexcel A-Level Further Maths: Topic test
20 questions, 54 marks
Edexcel A-Level Further Maths
Decision Mathematics 1: Algorithms on graphs topic test
Total 54 marks
Name
Class
Date
- 1A network has six vertices , , , , and . The weights of the edges are , , , , , , , and .(a)When Kruskal's algorithm is applied to the network, which edge is the first to be rejected?[1 mark]
- A
- B
- C
- D
(b)What is the total weight of the minimum spanning tree?[1 mark]- A
- B
- C
- D
(c)Use Prim's algorithm, starting at , to list the edges of the minimum spanning tree in the order in which they are added.[2 marks]Total for question 1: 4 marks
- 2A road network joins towns , , , , and . The road lengths in km are , , , , , , , and . Dijkstra's algorithm is used to find the shortest route from to .(a)What is the final (permanent) label of ?[1 mark]
- A
- B
- C
- D
(b)In which order do the vertices receive their permanent labels?[1 mark]- A
- B
- C
- D
(c)The road is closed. Find the new shortest distance from to .[2 marks]Total for question 2: 4 marks
- 3Floyd's algorithm is applied to a directed network with four vertices , , and . The initial distance matrix, with rows and columns in the order , , , and meaning that there is no direct arc, is . In iteration the intermediate vertex is the th vertex, taken in the order , , , .(a)Complete iteration 1 and write down the updated distance matrix.[3 marks](b)Complete iterations 2, 3 and 4 to find the final distance matrix.[4 marks]
Total for question 3: 7 marks
- 4A network has seven vertices , , , , , and . The edges and their weights are , , , , , , , , , and .(a)Use Kruskal's algorithm to find a minimum spanning tree for the network. List the edges in the order considered, stating clearly which are accepted and which are rejected, and give the total weight of the tree.[6 marks](b)Use Dijkstra's algorithm to find the shortest route from to , showing the order of permanent labels and the working values. State whether this route uses only edges of the minimum spanning tree found in part (a).[6 marks]
Total for question 4: 12 marks
- 5The distances in km between five towns , , , and are given by the matrix , with rows and columns in the order , , , , . A dash means that there is no direct road. A minimum spanning tree for the towns is to be found.(a)Prim's algorithm is started at . Which edge is added second?[1 mark]
- A
- B
- C
- D
(b)What is the weight of the minimum spanning tree?[1 mark]- A
- B
- C
- D
(c)The road is closed. Find the weight of the minimum spanning tree for the remaining roads.[2 marks]Total for question 5: 4 marks
- 6A network of roads has vertices , , , , , and and the road lengths in km are , , , , , , , , , and . Dijkstra's algorithm is applied from . At one stage , and have permanent labels 0, 4 and 7, and no other vertex has a permanent label.(a)Which vertex is given the next permanent label?[1 mark]
- A
- B
- C
- D
(b)After is made permanent, what is the new working value of ?[1 mark]- A
- B
- C
- D
(c)Complete the algorithm to find the shortest distance from to and state the route.[2 marks]Total for question 6: 4 marks
- 7Floyd's algorithm is applied to a directed network with four vertices , , and . The initial distance matrix, with rows and columns in the order , , , and meaning that there is no direct arc, is . The route matrix initially has the column vertex in every entry, so each row reads , , , . When is improved using intermediate vertex , the route entry for is replaced by the route entry for . In iteration the intermediate vertex is the th vertex in the order , , , .(a)Complete iteration 1 for both the distance matrix and the route matrix, stating the entries that change.[3 marks](b)The algorithm is completed. The final distance matrix is and the final route matrix, with rows and columns in the order , , , , is . Use the final matrices to find the shortest route from to and its length.[4 marks]
Total for question 7: 7 marks
- 8A network has four vertices , , and . The roads and their lengths in km are , , , and . There is no direct road between and .(a)Write down the initial distance matrix with rows and columns in the order , , , , then use Floyd's algorithm to find the shortest distance between every pair of vertices, showing the matrix after each iteration.[6 marks](b)Use Prim's algorithm, starting at , to find a minimum spanning tree for the original network and its total weight. Show that the route between and in this tree is longer than the shortest distance found in part (a), and explain why this happens.[6 marks]
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).