Skip to main content

A Lazy Version of Eppstein’s K Shortest Paths Algorithm

  • Conference paper
  • First Online:
Experimental and Efficient Algorithms (WEA 2003)

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

Included in the following conference series:

Abstract

We consider the problem of enumerating, in order of increasing length, the K shortest paths between a given pair of nodes in a weighted digraph G with n nodes and m arcs. To solve this problem, Eppstein’s algorithm first computes the shortest path tree and then builds a graph D(G) representing all possible deviations from the shortest path. Building D(G) takes O(m+n log n) time in the basic version of the algorithm. Once it has been built, the K shortest paths can be obtained in order of increasing length in O(K log K) time. However, experimental results show that the time required to build D(G) is considerable, thereby reducing the practical interest of the algorithm. In this paper, we propose a modified version of Eppstein’s algorithm in which only the parts of D(G) which are necessary for the selection of the K shortest paths are built. This version maintains Eppstein’s worst-case running time and entails an important improvement in practical performance, according to experimental results that are also reported here.

This work has been supported by the Generalitat Valenciana under grant CTIDIA/2002/209 and by the Spanish Ministerio de Ciencia y Technología and FEDER under grant TIC2002-02684.

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. J. Azevedo, M. Costa, J. Madeira, and E. Martins. An algorithm for the ranking of shortest paths. European J. Op. Res., 69:97–106, 1993.

    Article  MATH  Google Scholar 

  2. J. Azevedo, J. Madeira, E. Martins, and F. Pires. A computational improvement for a shortest paths ranking algorithm. European J. Op. Res., 73:188–191, 1994.

    Article  MATH  Google Scholar 

  3. R. Bellman and R. Kalaba. On kth best policies. J. SIAM, 8(4):582–588, 1960.

    MathSciNet  Google Scholar 

  4. T. Cormen, C. E. Leiserson, R. Rivest, and C. Stein. Introduction to Algorithms. The MIT Press, Cambridge, MA, 2nd edition, 2001.

    MATH  Google Scholar 

  5. S. Dreyfus. An appraisal of some shortest-path algorithms. Op. Res., 17:395–412, 1969.

    MATH  Google Scholar 

  6. D. Eppstein. Finding the k shortest paths. SIAM J. Computing, 28(2):652–673, 1999.

    Article  MathSciNet  Google Scholar 

  7. B. L. Fox. Calculating kth shortest paths. INFOR — Canad. J. Op. Res. and Inform. Proces., 11(1):66–70, 1973.

    MATH  Google Scholar 

  8. B. L. Fox. Data structures and computer science techniques in operations research. Op. Res., 26(5):686–717, 1978.

    MATH  Google Scholar 

  9. V. M. Jiménez and A. Marzal. Computing the k shortest paths: a new algorithm and an experimental comparison. Lecture Notes in Computer Science, 1668:15–29, 1999. (http://terra.act.uji.es/REA/papers/wae99.ps.gz).

    Article  Google Scholar 

  10. E. Martins and J. Santos. A new shortest paths ranking algorithm. Technical report, Departamento de Matemática, Universidade de Coimbra, 1996. (http://www.mat.uc.pt/~eqvm).

  11. E. Q. V. Martins. An algorithm for ranking paths that may contain cycles. European J. Op. Res., 18:123–130, 1984.

    Article  MATH  MathSciNet  Google Scholar 

  12. K. Mehlhorn and M. Ziegelman. Resource constrained shortest paths. Lecture Notes in Computer Science, 1879:326–337, 2000.

    Article  Google Scholar 

  13. S. P. Miaou and S. M. Chin. Computing K-shortest paths for nuclear spent fuel highway transportation. European J. Op. Res., 53:64–80, 1991.

    Article  Google Scholar 

  14. D. R. Shier. Iterative methods for determining the k shortest paths in a network. Networks, 6:205–229, 1976.

    Article  MATH  MathSciNet  Google Scholar 

  15. D. R. Shier. On algorithms for finding the k shortest paths in a network. Networks, 9:195–214, 1979.

    Article  MATH  MathSciNet  Google Scholar 

  16. C. C. Skicism and B. L. Golden. Computing k-shortest path lengths in euclidean networks. Networks, 17:341–352, 1987.

    Article  MathSciNet  Google Scholar 

  17. C. C. Skicism and B. L. Golden. Solving k-shortest and constrained shortest path problems efficiently. Annals of Op. Res., 20:249–282, 1989.

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2003 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Jiménez, V.M., Marzal, A. (2003). A Lazy Version of Eppstein’s K Shortest Paths Algorithm. In: Jansen, K., Margraf, M., Mastrolilli, M., Rolim, J.D.P. (eds) Experimental and Efficient Algorithms. WEA 2003. Lecture Notes in Computer Science, vol 2647. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-44867-5_14

Download citation

  • DOI: https://doi.org/10.1007/3-540-44867-5_14

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-40205-3

  • Online ISBN: 978-3-540-44867-9

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics