All flashcards topics

Dijkstra's algorithmEdexcel International A Level Maths: Flashcards

What these 12 flashcards ask

  • What does Dijkstra's algorithm find?
  • What three things are recorded in each vertex box?
  • What is the first step of Dijkstra's algorithm?
  • How do you choose the next vertex to label permanently?
  • How do you calculate a new working value?
  • When do you replace a working value?
  • How do you find the route after finishing?
  • Can the shortest route use a direct arc that is longer than a two-arc route?
  • When can Dijkstra's algorithm stop?
  • A road in the network closes. What do you do?
  • A new arc XY of weight x is added. When does it shorten the route from S to T?
  • What must be true of the arc weights for Dijkstra's algorithm?

Exam questions on Dijkstra's algorithm

  1. A network has five vertices SS, AA, BB, CC and TT. The arcs and their lengths are SA=9SA=9, SB=5SB=5, AB=3AB=3, AC=10AC=10, BC=2BC=2, BT=9BT=9 and CT=6CT=6. Dijkstra's algorithm is applied starting at SS.
    Find the shortest route from SS to AA and its length. Explain why the arc SASA is not used.2 marks
  2. A network has six vertices AA to FF. The arcs and their lengths are AB=2AB=2, AC=8AC=8, AD=9AD=9, BC=13BC=13, BE=5BE=5, CD=13CD=13, CE=14CE=14, DF=6DF=6 and EF=4EF=4. Dijkstra's algorithm is applied starting at AA.
    Find the shortest route from AA to FF and state its length.2 marks
  3. A courier company has six depots AA to FF. The direct roads between depots and their lengths in km are AB=4AB=4, AC=3AC=3, AD=11AD=11, BC=10BC=10, BE=5BE=5, CD=13CD=13, CE=7CE=7, DF=13DF=13 and EF=12EF=12. A courier travels from AA to FF.
    Use Dijkstra's algorithm to find the shortest route from AA to FF. State the order in which the vertices are permanently labelled, with their final labels, and the length of the route.3 marks
See the full worksheet

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).