THE PROBLEM OF FINDING THE SHORTEST PATH: A COMPARATIVE ANALYSIS OF THE MAIN ALGORITHMS

Authors

DOI:

https://doi.org/10.32782/IT/2023-2-12

Keywords:

problem of finding the shortest path, Dijkstra’s algorithm, Bellman-Ford algorithm, Floyd-Warshell algorithm, graph.

Abstract

Mathematical models of connections between certain elements are built with the help of graphs. For example, transport, information, computer and other networks, maps of road, railway, air routes, labyrinths, etc. can be depicted in the form of a graph. The question of the shortest path is still one of the most relevant topics in the field of research. Finding the shortest paths in a graph is used in various fields of activity, for example, to find the optimal route between two objects on a terrain map, in freight logistics, in information packet switching systems on the Internet, etc. This article presents the basic principles of three algorithms for finding the shortest path and compares them by analyzing time and space complexity. In addition, the scope of application of various algorithms is summarized. Dijkstra’s algorithm is a classic algorithm for obtaining the shortest path from a particular vertex to any other. It is widely used in road networks. This algorithm can be used only when the graph does not have any edge with negative weight. The Bellman-Ford algorithm can be used on graphs with negative edge weights, as long as the graph does not contain a negative cycle accessible from the source vertex. The result of this algorithm can be used to determine the existence of a negative weight cycle in a graph. The Floyd-Warshall algorithm is a dynamic programming algorithm that can solve the shortest path problem between any two vertices. The method is used on weighted graphs, which can have both positive and negative edge weights, but must not contain negative cycles. Thus, this method is more general in comparison with Dijkstra’s algorithm. However, in practical application, these three algorithms are not directly used, but their modification and optimization are carried out to improve efficiency.

References

Dijkstra’s algorithm. Wikipedia: The Free Encyclopedia. URL: https://en.wikipedia.org/wiki/Dijkstra%27s_ algorithm (application date: 20.06.2023)

Abbasi S., Ebrahimnejad S. Finding the Shortest Path in Dynamic Network using Labeling Algorithm. International Journal of Business and Social Science. 2011. Vol. 2. № 20. P. 239–243.

Ahmat K. A. (n.d.). Graph Theory and Optimization Problems for Very Large Networks. City University of New York. New York, Information Technology. 2009. 5 p.

Chen K., Makki K., Pissinou N. A real-time wireless route guidance system for urban traffic management and its performance evaluation. 2009 IEEE 70th Vehicular Technology Conference Fall. 2009. 5 p.

Dijkstra E.W. A note on two problems in connexion with graphs. Numerische Mathematik. 1959. Vol. 1. P. 269–271.

Hung Cheng-Huang. Inverse Shortest Path Length Problem. School of Industrial and systems engineering Georgia Institute of Technology. 2003. 24 p.

Li T., Qi L., Ruan D. An efficient Algorithm for the single source Shortest Path Problem in Graph Theory. International Conference on Intelligent System and Knowledge Engineering. 2008. P. 152–157.

Cao L., Zhao X., Zheng H., Zhao B. ZhaoApproximating Shortest Path in Social Graph. UC Santa Barbara: Computer Science Department. 2011. 20 p.

Meghanathan D. N. (n.d.). Review of Graph Theory. MS: Department of Computer Science, Jackson State University. 2012.

Pallottino S., Scutellà M.G. Shortest Path Algorithms in Transportation models: classical and innovative aspects. Equilibrium and Advanced Transportation Modelling / Patrice Marcotte, Sang Nguyen. Springer New York, NY, 1998. P.245–281.

Shirinivas S.G., Vetrivel S., Elango N.M. Application of Graph theory in Computer Science an overview. International Journal of Engineering Science and Technology. 2010. Vol. 2 (9). P. 4610–4621.

Sommer C. Approximate Shortest Path and Distance Queries in Networks. Graduate School of Information Science and Technology: Department of Computer Science, 2010. Tokyo, 2010.

Wadhwa Sh. Analysis of a network design problem. Lehigh University. 2000.

Published

2023-09-13