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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
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.
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.
R. Bellman and R. Kalaba. On kth best policies. J. SIAM, 8(4):582–588, 1960.
T. Cormen, C. E. Leiserson, R. Rivest, and C. Stein. Introduction to Algorithms. The MIT Press, Cambridge, MA, 2nd edition, 2001.
S. Dreyfus. An appraisal of some shortest-path algorithms. Op. Res., 17:395–412, 1969.
D. Eppstein. Finding the k shortest paths. SIAM J. Computing, 28(2):652–673, 1999.
B. L. Fox. Calculating kth shortest paths. INFOR — Canad. J. Op. Res. and Inform. Proces., 11(1):66–70, 1973.
B. L. Fox. Data structures and computer science techniques in operations research. Op. Res., 26(5):686–717, 1978.
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).
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).
E. Q. V. Martins. An algorithm for ranking paths that may contain cycles. European J. Op. Res., 18:123–130, 1984.
K. Mehlhorn and M. Ziegelman. Resource constrained shortest paths. Lecture Notes in Computer Science, 1879:326–337, 2000.
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.
D. R. Shier. Iterative methods for determining the k shortest paths in a network. Networks, 6:205–229, 1976.
D. R. Shier. On algorithms for finding the k shortest paths in a network. Networks, 9:195–214, 1979.
C. C. Skicism and B. L. Golden. Computing k-shortest path lengths in euclidean networks. Networks, 17:341–352, 1987.
C. C. Skicism and B. L. Golden. Solving k-shortest and constrained shortest path problems efficiently. Annals of Op. Res., 20:249–282, 1989.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights 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