Dijkstra's algorithm
Learn about Dijkstra's algorithm
Problem Statement
You are given a directed or undirected weighted graph with vertices and edges. All edge weights are non-negative. You are also given a starting vertex .
For each vertex , we need to find the length of the shortest path from to .