Algorithm steps
- Mark the source node with a current distance of 0
- Set the non-visited node with the smallest current distance as the current node
- For each neighbor, N of the current node adds the current distance of the adjacent node with the weight of the edge connecting 0->1. If it is smaller than the current distance of Node, set it as the new current distance of N
- Mark the current node 1 as visited
- Go to step 2 if there are any nodes are unvisited
-GeeksForGeeks
Designer
Edsger W. Dijkstra