English

Faster Algorithms for All Pairs Non-decreasing Paths Problem

Data Structures and Algorithms 2019-04-25 v1

Abstract

In this paper, we present an improved algorithm for the All Pairs Non-decreasing Paths (APNP) problem on weighted simple digraphs, which has running time O~(n3+ω2)=O~(n2.686)\tilde{O}(n^{\frac{3 + \omega}{2}}) = \tilde{O}(n^{2.686}). Here nn is the number of vertices, and ω<2.373\omega < 2.373 is the exponent of time complexity of fast matrix multiplication [Williams 2012, Le Gall 2014]. This matches the current best upper bound for (max,min)(\max, \min)-matrix product [Duan, Pettie 2009] which is reducible to APNP. Thus, further improvement for APNP will imply a faster algorithm for (max,min)(\max, \min)-matrix product. The previous best upper bound for APNP on weighted digraphs was O~(n12(3+3ωω+1+ω))=O~(n2.78)\tilde{O}(n^{\frac{1}{2}(3 + \frac{3 - \omega}{\omega + 1} + \omega)}) = \tilde{O}(n^{2.78}) [Duan, Gu, Zhang 2018]. We also show an O~(n2)\tilde{O}(n^2) time algorithm for APNP in undirected graphs which also reaches optimal within logarithmic factors.

Keywords

Cite

@article{arxiv.1904.10701,
  title  = {Faster Algorithms for All Pairs Non-decreasing Paths Problem},
  author = {Ran Duan and Ce Jin and Hongxun Wu},
  journal= {arXiv preprint arXiv:1904.10701},
  year   = {2019}
}
R2 v1 2026-06-23T08:48:05.982Z