Abstract
A new algorithm to compute the K shortest paths (in order of increasing length) between a given pair of nodes in a digraph with n nodes and m arcs is presented. The algorithm recursively and efficiently solves a set of equations which generalize the Bellman equations for the (single) shortest path problem and allows a straightforward implementation. After the shortest path from the initial node to every other node has been computed, the algorithm finds the K shortest paths in O(m+ Kn log(m/n)) time. Experimental results presented in this paper show that the algorithm outperforms in practice the algorithms by Eppstein [7],[8] and by Martins and Santos [15] for different kinds of random generated graphs.
This work has been partially supported by Spanish CICYT under contract TIC-97-0745-C02.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Azevedo, J.A., Costa, M.E.O.S., Madeira, J.J.E.R.S., Martins, E.Q.V.: An Algorithm for the Ranking of Shortest Paths. European J. Op. Res. 69 (1993) 97–106
Azevedo, J.A., Madeira, J.J.E.R.S., Martins, E.Q.V., Pires, F.P.A.: A Computational Improvement for a Shortest Paths Ranking Algorithm. European J. Op. Res. 73 (1994) 188–191
Bellman, R.: On a Routing Problem. Quarterly Applied Math. 16 (1958) 87–90
Bellman, R., Kalaba, R.: On kth Best Policies. J. SIAM 8 (1960) 582–588
Cormen, T.H., Leiserson, C.E., Rivest, R.L.: Introduction to Algorithms. The MIT Press, Cambridge, MA (1990)
Dreyfus, S.E.: An Appraisal of Some Shortest Path Algorithms. Op. Res. 17 (1969) 395–412
Eppstein, D.: Finding the k Shortest Paths. In: Proc. 35th IEEE Symp. FOCS (1994) 154–165
Eppstein, D.: Finding the k Shortest Paths. SIAM J. Computing 28(2) (1999) 652–673
Fox, B.L.: Calculating kth Shortest Paths. INFOR-Canad. J. Op. Res. and Inform. Proces. 11(1) (1973) 66–70
Fox, B.L.: Data Structures and Computer Science Techniques in Operations Research. Op. Res. 26(5) (1978) 686–717
Jiménez, V.M., Marzal, A.: A New Algorithm for Finding the N-Best Sentence Hypotheses in Continuous Speech Recognition. In: Casacuberta, F., Sanfeliu, A. (eds.): Advances in Pattern Recognition and Applications. World Scientific (1994) 218–228. Translated from Proc. V Symp. of Spanish AERFAI (1992) 180-187
Jiménez, V.M., Marzal, A., Monné, J.: A Comparison of Two Exact Algorithms for Finding the N-Best Sentence Hypotheses in Continuous Speech Recognition. In: Proc. 4th ESCA Conf. EUROSPEECH (1995) 1071–1074
Jiménez, V.M., Marzal, A., Vidal, E.: Efficient Enumeration of Sentence Hypotheses in Connected Word Recognition. In: Proc. 3rd ESCA Conf. EUROSPEECH (1993) 2183–2186
Martins, E. Q. V.: An Algorithm for Ranking Paths that may Contain Cycles. European J. Op. Res. 18 (1984) 123–130
Martins, E.Q.V., Santos, J.L.E.: A New Shortest Paths Ranking Algorithm. Technical report, Univ. de Coimbra, http://www.mat.uc.pt/~eqvm (1996)
Marzal, A.: Cálculo de las K Mejores Soluciones a Problemas de Programación Dinámica. PhD thesis (in Spanish), Univ. Politécnica de Valencia, Spain (1994)
Marzal, A., Vidal, E.: A N-best sentence hypotheses enumeration algorithm with duration constraints based on the two level algorithm. In Proc. of the Int. Conf. on Pattern Recognition (1992)
Miaou, S.P., Chin, S.M.: Computing K-Shortest Paths for Nuclear Spent Fuel Highway Transportation. European J. Op. Res. 53 (1991) 64–80
Shier, D.R.: Iterative Methods for Determining the k Shortest Paths in a Network. Networks 6 (1976) 205–229
Shier, D.R.: On Algorithms for Finding the k Shortest Paths in a Network. Networks 9 (1979) 195–214
Skicism, C.C., Golden, B.L.: Computing k-Shortest Path Lengths in Euclidean Networks. Networks 17 (1987) 341–352
Skicism, C.C., Golden, B.L.: Solving k-Shortest and Constrained Shortest Path Problems Efficiently. Annals of Op. Res. 20 (1989) 249–282
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 1999 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Jiménez, V.M., Marzal, A. (1999). Computing the K Shortest Paths: A New Algorithm and an Experimental Comparison. In: Vitter, J.S., Zaroliagis, C.D. (eds) Algorithm Engineering. WAE 1999. Lecture Notes in Computer Science, vol 1668. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-48318-7_4
Download citation
DOI: https://doi.org/10.1007/3-540-48318-7_4
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-66427-7
Online ISBN: 978-3-540-48318-2
eBook Packages: Springer Book Archive