English

Combining All Pairs Shortest Paths and All Pairs Bottleneck Paths Problems

Data Structures and Algorithms 2013-09-24 v1

Abstract

We introduce a new problem that combines the well known All Pairs Shortest Paths (APSP) problem and the All Pairs Bottleneck Paths (APBP) problem to compute the shortest paths for all pairs of vertices for all possible flow amounts. We call this new problem the All Pairs Shortest Paths for All Flows (APSP-AF) problem. We firstly solve the APSP-AF problem on directed graphs with unit edge costs and real edge capacities in O~(tn(ω+9)/4)=O~(tn2.843)\tilde{O}(\sqrt{t}n^{(\omega+9)/4}) = \tilde{O}(\sqrt{t}n^{2.843}) time, where nn is the number of vertices, tt is the number of distinct edge capacities (flow amounts) and O(nω)<O(n2.373)O(n^{\omega}) < O(n^{2.373}) is the time taken to multiply two nn-by-nn matrices over a ring. Secondly we extend the problem to graphs with positive integer edge costs and present an algorithm with O~(tc(ω+5)/4n(ω+9)/4)=O~(tc1.843n2.843)\tilde{O}(\sqrt{t}c^{(\omega+5)/4}n^{(\omega+9)/4}) = \tilde{O}(\sqrt{t}c^{1.843}n^{2.843}) worst case time complexity, where cc is the upper bound on edge costs.

Keywords

Cite

@article{arxiv.1309.5687,
  title  = {Combining All Pairs Shortest Paths and All Pairs Bottleneck Paths Problems},
  author = {Tong-Wook Shinn and Tadao Takaoka},
  journal= {arXiv preprint arXiv:1309.5687},
  year   = {2013}
}
R2 v1 2026-06-22T01:31:57.119Z