Breaking Dijkstra.DIJKSTRA × SIMPLIFIED BMSSP
Runs locally in your browserSource paper
AN INTERACTIVE ALGORITHM WORKSPACE

A new route beyond Dijkstra.

Explore the shortest paths. Follow the recursive procedure.
Understand what breaking the sorting barrier actually means.

THE PAPER’S THEORETICAL ADVANCE
O(m + n log n)O(m log2/3 n)
Directed SSSP · non-negative weights · sparse-graph improvement
GRAPH CONFIGURATION

Competing routes across a weighted, directed network.

14vertices24edges
Ready when you are— / —
SourceActivePivotFrontierFinalizedPathTarget
A
CLASSICAL BASELINE

Dijkstra’s algorithm

Ready
Indexed binary min-heapO((m + n) log n)
0 → 1, weight 220 → 2, weight 330 → 3, weight 440 → 4, weight 110 → 5, weight 220 → 6, weight 331 → 7, weight 111 → 8, weight 222 → 8, weight 222 → 9, weight 333 → 9, weight 333 → 10, weight 114 → 10, weight 114 → 11, weight 225 → 11, weight 225 → 12, weight 336 → 12, weight 336 → 7, weight 117 → 13, weight 228 → 13, weight 339 → 13, weight 1110 → 13, weight 2211 → 13, weight 3312 → 13, weight 11Vertex 0 · source · distance 000SOURCEVertex 1 · unreached · distance ∞1∞Vertex 2 · unreached · distance ∞2∞Vertex 3 · unreached · distance ∞3∞Vertex 4 · unreached · distance ∞4∞Vertex 5 · unreached · distance ∞5∞Vertex 6 · unreached · distance ∞6∞Vertex 7 · unreached · distance ∞7∞Vertex 8 · unreached · distance ∞8∞Vertex 9 · unreached · distance ∞9∞Vertex 10 · unreached · distance ∞10∞Vertex 11 · unreached · distance ∞11∞Vertex 12 · unreached · distance ∞12∞Vertex 13 · unreached · distance ∞ · target13∞Click a vertex to set the target
Finalized0 / 14
Target distance∞ unreached
Heap size0
CURRENT ROUTE—
Awaiting execution

The graph is ready. Start a comparison.

  • Both procedures run on the same directed graph and source.
  • Select a target to inspect its path as the algorithm progresses.
B
RECURSIVE PROCEDURE

Duan et al. · BMSSP

Ready
Pivots + recursive blocksBMSSP(L, ∞, {s})
0 → 1, weight 220 → 2, weight 330 → 3, weight 440 → 4, weight 110 → 5, weight 220 → 6, weight 331 → 7, weight 111 → 8, weight 222 → 8, weight 222 → 9, weight 333 → 9, weight 333 → 10, weight 114 → 10, weight 114 → 11, weight 225 → 11, weight 225 → 12, weight 336 → 12, weight 336 → 7, weight 117 → 13, weight 228 → 13, weight 339 → 13, weight 1110 → 13, weight 2211 → 13, weight 3312 → 13, weight 11Vertex 0 · source · distance 000SOURCEVertex 1 · unreached · distance ∞1∞Vertex 2 · unreached · distance ∞2∞Vertex 3 · unreached · distance ∞3∞Vertex 4 · unreached · distance ∞4∞Vertex 5 · unreached · distance ∞5∞Vertex 6 · unreached · distance ∞6∞Vertex 7 · unreached · distance ∞7∞Vertex 8 · unreached · distance ∞8∞Vertex 9 · unreached · distance ∞9∞Vertex 10 · unreached · distance ∞10∞Vertex 11 · unreached · distance ∞11∞Vertex 12 · unreached · distance ∞12∞Vertex 13 · unreached · distance ∞ · target13∞Click a vertex to set the target
Finalized0 / 14
Target distance∞ unreached
Recursion level—
CURRENT ROUTE—
Awaiting execution

The graph is ready. Start a comparison.

  • Both procedures run on the same directed graph and source.
  • Select a target to inspect its path as the algorithm progresses.
Shared playback advances one recorded event per algorithm. Events are not equal units of work.Correctness is checked when you run a comparison.
Source 0Target 13
CURRENT SNAPSHOT

Follow each distance as it improves.

∞ = not reached yet
Click a vertex number to inspect its route.

VertexDijkstraStatusBMSSPStatus
0Tentative0Tentative
∞Unreached∞Unreached
∞Unreached∞Unreached
∞Unreached∞Unreached
∞Unreached∞Unreached
∞Unreached∞Unreached
∞Unreached∞Unreached
∞Unreached∞Unreached
∞Unreached∞Unreached
∞Unreached∞Unreached
∞Unreached∞Unreached
∞Unreached∞Unreached
∞Unreached∞Unreached
∞Unreached∞Unreached

Read the visualization with the paper. BMSSP follows the recursive procedure in Algorithms 1–3. Its queue is simplified to sort on Pull; the paper’s amortized queue and constant-degree reduction are not implemented. The theoretical O(m log2/3 n) bound is not claimed for this demo. Use the Benchmarks tab to measure these implementations.