Dijkstra's Algorithm
Find the shortest distance from one start node to every other node in a weighted graph, by always finalizing the nearest unvisited node next and relaxing its edges.
Before you start
Your learning journey
Every module Axiom offers for dijkstra's algorithm — work through them in order, or jump to what you need.
Explains single-source shortest path, why BFS isn't enough for weighted graphs, relaxation, and complexity.
Animates extract-min and edge relaxation on a live weighted graph, with a real-time distance row.
Checks that the 'extraction is final' guarantee and its dependence on non-negative weights is understood.
Answers follow-up questions and adapts the explanation to the learner's level.
One-glance recall of the extract-min/relax loop, complexity, and the non-negative-weights requirement.