Dijkstra's algorithmEdexcel International A Level Maths: Subtopic test
10 questions, 27 marks
Edexcel International A Level Maths
Dijkstra's algorithm
Total 27 marks
Name
Class
Date
- 1A network has five vertices , , , and . The arcs and their lengths are , , , , , and . Dijkstra's algorithm is applied starting at .(a)Which vertex is permanently labelled third, counting as the first?[1 mark]
- A
- B
- C
- D
(b)What is the length of the shortest route from to ?[1 mark]- A
- B
- C
- D
(c)Find the shortest route from to and its length. Explain why the arc is not used.[2 marks]Total for question 1: 4 marks
- 2A network has six vertices to . The arcs and their lengths are , , , , , , , and . Dijkstra's algorithm is applied starting at .(a)Which vertex is permanently labelled fourth, counting as the first?[1 mark]
- A
- B
- C
- D
(b)What is the shortest distance from to ?[1 mark]- A
- B
- C
- D
(c)Find the shortest route from to and state its length.[2 marks]Total for question 2: 4 marks
- 3A courier company has six depots to . The direct roads between depots and their lengths in km are , , , , , , , and . A courier travels from to .(a)Use Dijkstra's algorithm to find the shortest route from to . State the order in which the vertices are permanently labelled, with their final labels, and the length of the route.[3 marks](b)A new road is built directly between and of length km. Find the greatest integer value of for which the new road makes the shortest distance from to shorter than it is at present.[4 marks]
Total for question 3: 7 marks
- 4A network of roads joins seven towns , , , , , and . The roads and their lengths in km are , , , , , , , , , , and . An emergency vehicle must travel from to by the shortest route.(a)Use Dijkstra's algorithm to find the shortest route from to . State the order in which vertices are permanently labelled, with their final values, show where any working value is replaced, and give the route and its length.[6 marks](b)The road is closed for repairs. Find the new shortest route from to , and the extra distance the vehicle must now travel.[6 marks]
Total for question 4: 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).