Deep Dive

Dijkstra's Algorithm

743. Network Delay Time · Shortest paths · 68 of 78

1/21

A signal from A

4215810362B∞A0E∞D∞C∞F∞
In this lessonStep 1 of 21 · ← → keys
The question

A signal leaves node A and travels along roads, each with a travel time. How long until every node has the signal? Dijkstra answers this by always locking in the closest node next.