English

Faster Monotone Min-Plus Product, Range Mode, and Single Source Replacement Paths

Data Structures and Algorithms 2021-05-07 v1

Abstract

One of the most basic graph problems, All-Pairs Shortest Paths (APSP) is known to be solvable in n3o(1)n^{3-o(1)} time, and it is widely open whether it has an O(n3ϵ)O(n^{3-\epsilon}) time algorithm for ϵ>0\epsilon > 0. To better understand APSP, one often strives to obtain subcubic time algorithms for structured instances of APSP and problems equivalent to it, such as the Min-Plus matrix product. A natural structured version of Min-Plus product is Monotone Min-Plus product which has been studied in the context of the Batch Range Mode [SODA'20] and Dynamic Range Mode [ICALP'20] problems. This paper improves the known algorithms for Monotone Min-Plus Product and for Batch and Dynamic Range Mode, and establishes a connection between Monotone Min-Plus Product and the Single Source Replacement Paths (SSRP) problem on an nn-vertex graph with potentially negative edge weights in {M,,M}\{-M, \ldots, M\}. SSRP with positive integer edge weights bounded by MM can be solved in O~(Mnω)\tilde{O}(Mn^\omega) time, whereas the prior fastest algorithm for graphs with possibly negative weights [FOCS'12] runs in O(M0.7519n2.5286)O(M^{0.7519} n^{2.5286}) time, the current best running time for directed APSP with small integer weights. Using Monotone Min-Plus Product, we obtain an improved O(M0.8043n2.4957)O(M^{0.8043} n^{2.4957}) time SSRP algorithm, showing that SSRP with constant negative integer weights is likely easier than directed unweighted APSP, a problem that is believed to require n2.5o(1)n^{2.5-o(1)} time. Complementing our algorithm for SSRP, we give a reduction from the Bounded-Difference Min-Plus Product problem studied by Bringmann et al. [FOCS'16] to negative weight SSRP. This reduction shows that it might be difficult to obtain an O~(Mnω)\tilde{O}(M n^{\omega}) time algorithm for SSRP with negative weight edges, thus separating the problem from SSRP with only positive weight edges.

Keywords

Cite

@article{arxiv.2105.02806,
  title  = {Faster Monotone Min-Plus Product, Range Mode, and Single Source Replacement Paths},
  author = {Yuzhou Gu and Adam Polak and Virginia Vassilevska Williams and Yinzhan Xu},
  journal= {arXiv preprint arXiv:2105.02806},
  year   = {2021}
}
R2 v1 2026-06-24T01:50:56.431Z