Professional Documents
Culture Documents
Shortest Path Problem - Wikipedia
Shortest Path Problem - Wikipedia
Shortest Path Problem - Wikipedia
problem
Definition
The shortest path problem can be defined
for graphs whether undirected, directed, or
mixed. It is defined here for undirected
graphs; for directed graphs the definition
of path requires that consecutive vertices
be connected by an appropriate directed
edge.
Algorithms
The most important algorithms for solving
this problem are:
Dijkstra's algorithm solves the single-
source shortest path problem with non-
negative edge weight.
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 graphs.
Viterbi algorithm solves the shortest
stochastic path problem with an
additional probabilistic weight on each
node.
Undirected graphs …
Unweighted graphs …
Algorithm Time complexity Author
Bellman–Ford
O(VE) Shimbel 1955, Bellman 1958, Moore 1959
algorithm
Dijkstra's algorithm with Leyzorek et al. 1957, Dijkstra 1959, Minty (see
O(V 2)
list Pollack & Wiebenson 1960), Whiting & Hillier 1960
ℕ Williams 2014
Directed graph …
ℕ Williams 2014
Applications
Shortest path algorithms are applied to
automatically find directions between
physical locations, such as driving
directions on web mapping websites like
MapQuest or Google Maps. For this
application fast specialized algorithms are
available.[1]
In a networking or telecommunications
mindset, this shortest path problem is
sometimes called the min-delay path
problem and usually tied with a widest
path problem. For example, the algorithm
may seek the shortest (min-delay) widest
path, or widest shortest (min-delay) path.
Road networks …
Related problems
For shortest path problems in
computational geometry, see Euclidean
shortest path.
Linear programming
formulation
There is a natural linear programming
formulation for the shortest path problem,
given below. It is very simple compared to
most other uses of linear programs in
discrete optimization, however it illustrates
connections to other concepts.
minimize subject to
See also
Pathfinding
IEEE 802.1aq
Flow network
Shortest path tree
Euclidean shortest path
K shortest path routing
Min-plus matrix multiplication
Bidirectional search, an algorithm that
finds the shortest path between two
vertices on a directed graph
References
Notes …
Bibliography …
Ahuja, Ravindra K.; Mehlhorn, Kurt; Orlin,
James; Tarjan, Robert E. (April 1990). "Faster
algorithms for the shortest path problem" .
Journal of the ACM. ACM. 37 (2): 213–223.
doi:10.1145/77600.77615 .
Bellman, Richard (1958). "On a routing
problem". Quarterly of Applied Mathematics.
16: 87–90. doi:10.1090/qam/102435 .
MR 0102435 .
Cherkassky, Boris V.; Goldberg, Andrew V.;
Radzik, Tomasz (1996). "Shortest paths
algorithms: theory and experimental
evaluation" . Mathematical Programming. Ser.
A. 73 (2): 129–174. doi:10.1016/0025-
5610(95)00021-6 . MR 1392160 .
Cormen, Thomas H.; Leiserson, Charles E.;
Rivest, Ronald L.; Stein, Clifford (2001)
[1990]. "Single-Source Shortest Paths and
All-Pairs Shortest Paths". Introduction to
Algorithms (2nd ed.). MIT Press and McGraw-
Hill. pp. 580–642. ISBN 0-262-03293-7.
Dantzig, G. B. (January 1960). "On the
Shortest Route through a Network".
Management Science. 6 (2): 187–190.
doi:10.1287/mnsc.6.2.187 .
Derniame, Jean Claude; Pair, Claude (1971),
Problèmes de cheminement dans les graphes
(Path Problems in Graphs), Dunod (Paris)
Dijkstra, E. W. (1959). "A note on two
problems in connexion with graphs".
Numerische Mathematik. 1: 269–271.
doi:10.1007/BF01386390 .
Ford, L. R. (1956). "Network Flow Theory" .
Rand Corporation. P-923.
Fredman, Michael Lawrence; Tarjan, Robert
E. (1984). Fibonacci heaps and their uses in
improved network optimization algorithms.
25th Annual Symposium on Foundations of
Computer Science. IEEE. pp. 338–346.
doi:10.1109/SFCS.1984.715934 . ISBN 0-
8186-0591-X.
Fredman, Michael Lawrence; Tarjan, Robert
E. (1987). "Fibonacci heaps and their uses in
improved network optimization algorithms".
Journal of the Association for Computing
Machinery. 34 (3): 596–615.
doi:10.1145/28869.28874 .
Gabow, H. N. (1983). "Scaling algorithms for
network problems". Proceedings of the 24th
Annual Symposium on Foundations of
Computer Science (FOCS 1983) (PDF).
pp. 248–258. doi:10.1109/SFCS.1983.68 .
Gabow, Harold N. (1985). "Scaling algorithms
for network problems". Journal of Computer
and System Sciences. 31 (2): 148–168.
doi:10.1016/0022-0000(85)90039-X .
MR 0828519 .
Hagerup, Torben (2000). Montanari, Ugo;
Rolim, José D. P.; Welzl, Emo (eds.). Improved
Shortest Paths on the Word RAM .
Proceedings of the 27th International
Colloquium on Automata, Languages and
Programming. pp. 61–72. ISBN 978-3-540-
67715-4.
Johnson, Donald B. (1977). "Efficient
algorithms for shortest paths in sparse
networks". Journal of the ACM. 24 (1): 1–13.
doi:10.1145/321992.321993 .
Johnson, Donald B. (December 1981). "A
priority queue in which initialization and
queue operations take O(log log D) time".
Mathematical Systems Theory. 15 (1): 295–
309. doi:10.1007/BF01786986 .
MR 0683047 .
Karlsson, Rolf G.; Poblete, Patricio V. (1983).
"An O(m log log D) algorithm for shortest
paths". Discrete Applied Mathematics. 6 (1):
91–93. doi:10.1016/0166-218X(83)90104-X .
MR 0700028 .
Leyzorek, M.; Gray, R. S.; Johnson, A. A.;
Ladew, W. C.; Meaker, S. R., Jr.; Petry, R. M.;
Seitz, R. N. (1957). Investigation of Model
Techniques — First Annual Report — 6 June
1956 — 1 July 1957 — A Study of Model
Techniques for Communication Systems.
Cleveland, Ohio: Case Institute of
Technology.
Moore, E. F. (1959). "The shortest path
through a maze". Proceedings of an
International Symposium on the Theory of
Switching (Cambridge, Massachusetts, 2–5
April 1957). Cambridge: Harvard University
Press. pp. 285–292.
Pettie, Seth; Ramachandran, Vijaya (2002).
Computing shortest paths with comparisons
and additions . Proceedings of the Thirteenth
Annual ACM-SIAM Symposium on Discrete
Algorithms. pp. 267–276 . ISBN 978-0-
89871-513-2.
Pettie, Seth (26 January 2004). "A new
approach to all-pairs shortest paths on real-
weighted graphs". Theoretical Computer
Science. 312 (1): 47–74. doi:10.1016/s0304-
3975(03)00402-x .
Pollack, Maurice; Wiebenson, Walter (March–
April 1960). "Solution of the Shortest-Route
Problem—A Review". Oper. Res. 8 (2): 224–
230. doi:10.1287/opre.8.2.224 . Attributes
Dijkstra's algorithm to Minty ("private
communication") on p.225.
Schrijver, Alexander (2004). Combinatorial
Optimization — Polyhedra and Efficiency.
Algorithms and Combinatorics. 24. Springer.
ISBN 978-3-540-20456-5. Here: vol.A,
sect.7.5b, p. 103
Shimbel, Alfonso (1953). "Structural
parameters of communication networks".
Bulletin of Mathematical Biophysics. 15 (4):
501–507. doi:10.1007/BF02476438 .
Shimbel, A. (1955). Structure in
communication nets. Proceedings of the
Symposium on Information Networks. New
York, NY: Polytechnic Press of the
Polytechnic Institute of Brooklyn. pp. 199–
203.
Thorup, Mikkel (1999). "Undirected single-
source shortest paths with positive integer
weights in linear time". Journal of the ACM.
46 (3): 362–394.
doi:10.1145/316542.316548 .
Thorup, Mikkel (2004). "Integer priority
queues with decrease key in constant time
and the single source shortest paths
problem" . Journal of Computer and System
Sciences. 69 (3): 330–353.
doi:10.1016/j.jcss.2004.04.003 .
Whiting, P. D.; Hillier, J. A. (March–June
1960). "A Method for Finding the Shortest
Route through a Road Network". Operational
Research Quarterly. 11 (1/2): 37–40.
doi:10.1057/jors.1960.32 .
Williams, Ryan (2014). "Faster all-pairs
shortest paths via circuit complexity".
Proceedings of the 46th Annual ACM
Symposium on Theory of Computing (STOC
'14). New York: ACM. pp. 664–673.
arXiv:1312.6680 .
doi:10.1145/2591796.2591811 .
MR 3238994 .
Further reading
Frigioni, D.; Marchetti-Spaccamela, A.;
Nanni, U. (1998). "Fully dynamic output
bounded single source shortest path
problem". Proc. 7th Annu. ACM-SIAM
Symp. Discrete Algorithms. Atlanta, GA.
pp. 212–221.
CiteSeerX 10.1.1.32.9856 .
Dreyfus, S. E. (October 1967). An
Appraisal of Some Shortest Path
Algorithms (PDF) (Report). Project
Rand. United States Air Force. RM-5433-
PR. DTIC AD-661265.
Retrieved from
"https://en.wikipedia.org/w/index.php?
title=Shortest_path_problem&oldid=937071876"
Last edited 16 days ago by Sligocki