shortest path algorithms
This page is mainly about shortest_path_algorithms
In the Single-Source Shortest Paths (SSSP) problem, we aim to find the shortest paths weights (and the actual paths) from a particular single-source vertex to all other vertices in a directed weighted graph (if such paths exist).
The SSSP problem has several different efficient (polynomial) algorithms:
Bellman-Ford
BFS
DFS
Dijkstra
Dynamic Programming
...that can be used depending on the nature of the input directed weighted graph, i.e. weighted/unweighted, with/without (negative weight) cycle, or structurally special (a tree/a DAG).
This page is about Dijkstra's shortest path algorithm
Last modified: May 8th, 2024