Skip to main content

Computing the K Shortest Paths: A New Algorithm and an Experimental Comparison

  • Conference paper
  • First Online:
Algorithm Engineering (WAE 1999)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 1668))

Included in the following conference series:

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. 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

    Article  Google Scholar 

  2. 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

    Article  Google Scholar 

  3. Bellman, R.: On a Routing Problem. Quarterly Applied Math. 16 (1958) 87–90

    Article  MathSciNet  Google Scholar 

  4. Bellman, R., Kalaba, R.: On kth Best Policies. J. SIAM 8 (1960) 582–588

    MATH  Google Scholar 

  5. Cormen, T.H., Leiserson, C.E., Rivest, R.L.: Introduction to Algorithms. The MIT Press, Cambridge, MA (1990)

    MATH  Google Scholar 

  6. Dreyfus, S.E.: An Appraisal of Some Shortest Path Algorithms. Op. Res. 17 (1969) 395–412

    Article  Google Scholar 

  7. Eppstein, D.: Finding the k Shortest Paths. In: Proc. 35th IEEE Symp. FOCS (1994) 154–165

    Google Scholar 

  8. Eppstein, D.: Finding the k Shortest Paths. SIAM J. Computing 28(2) (1999) 652–673

    Article  MathSciNet  Google Scholar 

  9. Fox, B.L.: Calculating kth Shortest Paths. INFOR-Canad. J. Op. Res. and Inform. Proces. 11(1) (1973) 66–70

    MATH  Google Scholar 

  10. Fox, B.L.: Data Structures and Computer Science Techniques in Operations Research. Op. Res. 26(5) (1978) 686–717

    Article  MathSciNet  Google Scholar 

  11. 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

    Google Scholar 

  12. 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

    Google Scholar 

  13. 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

    Google Scholar 

  14. Martins, E. Q. V.: An Algorithm for Ranking Paths that may Contain Cycles. European J. Op. Res. 18 (1984) 123–130

    Article  MathSciNet  Google Scholar 

  15. 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)

  16. 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)

    Google Scholar 

  17. 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)

    Google Scholar 

  18. Miaou, S.P., Chin, S.M.: Computing K-Shortest Paths for Nuclear Spent Fuel Highway Transportation. European J. Op. Res. 53 (1991) 64–80

    Article  Google Scholar 

  19. Shier, D.R.: Iterative Methods for Determining the k Shortest Paths in a Network. Networks 6 (1976) 205–229

    Article  MathSciNet  Google Scholar 

  20. Shier, D.R.: On Algorithms for Finding the k Shortest Paths in a Network. Networks 9 (1979) 195–214

    Article  MathSciNet  Google Scholar 

  21. Skicism, C.C., Golden, B.L.: Computing k-Shortest Path Lengths in Euclidean Networks. Networks 17 (1987) 341–352

    Article  MathSciNet  Google Scholar 

  22. Skicism, C.C., Golden, B.L.: Solving k-Shortest and Constrained Shortest Path Problems Efficiently. Annals of Op. Res. 20 (1989) 249–282

    Article  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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

Publish with us

Policies and ethics