Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Shortest path problem
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Algorithms== Several well-known algorithms exist for solving this problem and its variants. * [[Dijkstra's algorithm]] solves the single-source shortest path problem with only non-negative edge weights. * [[Bellman–Ford algorithm]] solves the single-source problem if edge weights may be negative. * [[A* search algorithm]] solves for single-pair shortest path using heuristics to try to speed up the search. * [[Floyd–Warshall algorithm]] solves all pairs shortest paths. * [[Johnson's algorithm]] solves all pairs shortest paths, and may be faster than Floyd–Warshall on [[sparse graph]]s. * [[Viterbi algorithm]] solves the shortest stochastic path problem with an additional probabilistic weight on each node. Additional algorithms and associated evaluations may be found in {{harvtxt|Cherkassky|Goldberg|Radzik|1996}}.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)