Library › Further Decision Mathematics 1 WDM11 › Shortest Path Algorithms
AS Level · Further Decision Mathematics 1 WDM11

Shortest Path Algorithms

Revise Shortest Path Algorithms for Further Decision Mathematics 1 WDM11 (AS Level) — revision notes and instant AI marking.

📖 Revision notes · preview
Edexcel A Level Further Maths · Decision 1

Shortest Path Algorithms

Big idea: Dijkstra's algorithm finds the quickest way from one fixed starting point to everywhere else, while Floyd's algorithm finds the quickest way between every possible pair of points at once — same goal (shortest distance), different scale of ambition.

Summary — What This Chapter Covers

  • Dijkstra's algorithm finds the shortest distance from one fixed start vertex to every other vertex in a network (or you can stop early once you hit your target vertex).
  • Each vertex gets a labelling box with four values: the vertex name, its order of being finalised, its final (permanent) shortest distance, and its running "working values."
  • You build up the network by only ever looking at neighbours of the most recently finalised vertex, and you always keep the smallest working value seen so far.
  • Once every vertex (or your target) has a final label, you trace the shortest route backwards from the destination using the "difference in final labels = edge weight" trick.
  • Floyd's algorithm finds the shortest distance between every pair of nodes in a network — not just from one starting point — using two matrices: a distance matrix and a route matrix.
  • Floyd's algorithm updates both matrices in a fixed number of iterations (one per node), each time checking whether going "via" a particular node gives a shorter route.
  • Dijkstra = fast, but only from one start point. Floyd = slower, but gives you the whole picture for any start/end pair. Repeating Dijkstra from every possible start vertex would eventually give you the same information as one full run of Floyd's algorithm.

Key Vocabulary — Get Comfortable With These First

Vertex / Node
A point in the network (e.g. a town, a junction, a computer). The words "vertex" and "node" mean the same thing — Dijkstra's notes tend to say "vertex," Floyd's tend to say "node."
Edge / Arc
A connection between two vertices, usually with a number ("weight") attached representing distance, cost, or time.
Working value
A "temporary guess" at a vertex's shortest distance from the start. It can be beaten (replaced by something smaller) as the algorithm runs — it isn't locked in yet.
Final label (permanent label)
The confirmed, locked-in shortest distance from the start vertex to this vertex. Once a vertex has a final label, it never changes again.
Order of labelling
The sequence number showing which "round" a vertex got its final label in (1st, 2nd, 3rd...). The start vertex is always labelled 1st.
Distance matrix (Floyd's)
A grid showing the current best-known shortest distance between every pair of nodes. Starts off with only the direct edges filled in, and gets better with each iteration.
Route matrix (Floyd's)
A companion grid to the distance matrix. It doesn't store distances — it stores the "next stepping-stone node" to take on your way from the start to the destination.
Iteration
One full pass of Floyd's algorithm where a particular row and column are "highlighted" and used to try to improve every other cell. There's exactly one iteration per node in the network.

1. Dijkstra's Algorithm

What problem does it actually solve?

every single

grows outward like ripples on a pond every

The labelling box — read this carefully

2. Floyd's Algorithm

🔓 Read the full Shortest Path Algorithms note → You're seeing the preview · sign in to read it all
Also in the full note
  • 3. Comparing Dijkstra's & Floyd's Algorithms
  • What to Memorise
  • Concepts Checklist
  • Exam Tips & Common Mistakes
  • The six steps of Dijkstra's algorithm
  • Worked Example — Full Walkthrough
  • Practice Questions — Dijkstra's
  • Setting up the two matrices
What's inside
📖 Revision notes 🎯 Learn mode ✦ AI flashcards ✓ Instant AI marking 🧊 3D explorers 🧪 Experiments & simulations 📈 Progress tracking
📄 Practise Shortest Path Algorithms with Further Decision Mathematics 1 WDM11 past papers Every paper with its mark scheme — answer online, marked instantly. Open →

Read the full Shortest Path Algorithms notes free

That's the preview — create a free account to read the rest, plus flashcards and practice questions with instant AI marking. No credit card.

Unlock the full notes free →

More Further Decision Mathematics 1 topics