Dijkstra’s algorithm
—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.
Explore the shortest paths. Follow the recursive procedure.
Understand what breaking the sorting barrier actually means.
O(m + n log n)O(m log2/3 n)Competing routes across a weighted, directed network.
——∞ = not reached yet
Click a vertex number to inspect its route.
| Vertex | Dijkstra | Status | BMSSP | Status |
|---|---|---|---|---|
0 | Tentative | 0 | Tentative | |
∞ | 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.
Reproducible graphs. Independent correctness checks. Real timings in your browser.
21 measured batches
5 warm-up runs per algorithm
Run a benchmark to compare the binary-heap baseline with the BMSSP procedure.
No prefilled numbers. No assumed winner.
Implementation scope. The BMSSP demo uses a full sort on Pull and omits the constant-degree graph transformation. It does not inherit the paper’s O(m log2/3 n) bound. Timings exclude graph construction, Bellman–Ford verification, trace recording, and UI rendering. Batch sizes are calibrated per algorithm; percentile ranges describe batch averages, not confidence intervals. Grid sizes are rounded down to a square.