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

  • Víctor M. Jiménez
  • Andrés Marzal
Conference paper

DOI: 10.1007/3-540-48318-7_4

Part of the Lecture Notes in Computer Science book series (LNCS, volume 1668)
Cite this paper as:
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

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.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag Berlin Heidelberg 1999

Authors and Affiliations

  • Víctor M. Jiménez
    • 1
  • Andrés Marzal
    • 1
  1. 1.Departamento de InformáticaUniversitat Jaume ICastellónSpain

Personalised recommendations