English

Efficiently listing bounded length st-paths

Data Structures and Algorithms 2014-11-26 v1

Abstract

The problem of listing the KK shortest simple (loopless) stst-paths in a graph has been studied since the early 1960s. For a non-negatively weighted graph with nn vertices and mm edges, the most efficient solution is an O(K(mn+n2logn))O(K(mn + n^2 \log n)) algorithm for directed graphs by Yen and Lawler [Management Science, 1971 and 1972], and an O(K(m+nlogn))O(K(m+n \log n)) algorithm for the undirected version by Katoh et al. [Networks, 1982], both using O(Kn+m)O(Kn + m) space. In this work, we consider a different parameterization for this problem: instead of bounding the number of stst-paths output, we bound their length. For the bounded length parameterization, we propose new non-trivial algorithms matching the time complexity of the classic algorithms but using only O(m+n)O(m+n) space. Moreover, we provide a unified framework such that the solutions to both parameterizations -- the classic KK-shortest and the new length-bounded paths -- can be seen as two different traversals of a same tree, a Dijkstra-like and a DFS-like traversal, respectively.

Keywords

Cite

@article{arxiv.1411.6852,
  title  = {Efficiently listing bounded length st-paths},
  author = {Romeo Rizzi and Gustavo Sacomoto and Marie-France Sagot},
  journal= {arXiv preprint arXiv:1411.6852},
  year   = {2014}
}

Comments

12 pages, accepted to IWOCA 2014

R2 v1 2026-06-22T07:11:31.760Z