Shortest Path Algorithms (Edexcel A-Level Further Mathematics): Flashcards

📚Flashcards
Dijkstra's Algorithm
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

10 cards from this deck

Show

Purpose of Dijkstra's algorithm

Finds shortest path from starting node to all others

Starting node's initial distance

00

Other nodes' initial distance

\infty (infinity)

Tentative distance calculation formula

Current node distance + edge weight

When to update neighbour's distance

When calculated distance << current recorded distance

Next node selection rule

Unvisited node with smallest tentative distance

Dijkstra's termination condition

Shortest path to target found or all nodes visited

Visited nodes in further steps

Not checked again

Initialisation mistake

Forgetting start=00, others=\infty

Edge weight mistake

Treating all edges as equal weight

Join 100,000+ A-Level students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.