Dijkstra's algorithm

https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm

https://www.youtube.com/watch?v=GazC3A4OQTE