Start Origin
Destination
💡
Step Explanation & Algorithmic State
Ready to execute Dijkstra's algorithm. Press Play or Step Next to watch distance relaxations live.
Shortest Path Summary
Optimal
Total Road Distance
— km
Estimated Drive Time
—
Intermediate Hops
—
Optimal Route Itinerary:
Run algorithm to calculate step-by-step route.
Min-Priority Queue (Binary Heap)
Min at front
Queue initialized with source.
Distance Array d[v] & Predecessors All Vertices
| City | Shortest d[v] | Via Parent | Status |
|---|
Algorithm Tracker
Dijkstra(G, s, t)
1: dist[s] = 0, dist[v] = ∞ for all v ≠s
2: PQ.insert(s, 0)
3: while PQ is not empty:
4: u = PQ.extractMin()
5: if u == target: return reconstructPath(t)
6: for each neighbor v of u with weight w:
7: if dist[u] + w < dist[v]:
8: dist[v] = dist[u] + w
9: parent[v] = u
10: PQ.decreaseKey(v, dist[v])
11: settle(u)
12: return optimal distances
Academic & Lab Assignment Center
Dynamic trace tables, formal mathematical proofs, multi-language code, and viva questions.
Step-by-Step Relaxation Trace Table
Live dynamic evaluation of every extracted node and edge relaxation in the current city network.
| Step # | From (u) | To (v) | Highway | Weight (w) | Previous d[v] | Evaluation (d[u] + w) | Decision | New d[v] |
|---|