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

Yuzhou Gu, Adam Polak, Virginia Vassilevska Williams, Yinzhan Xu

Abstract

This paper presents a significant algorithmic advancement for several fundamental problems in computer science, specifically focusing on the Monotone Min-Plus Product and its applications to Range Mode and Single Source Replacement Paths (SSRP). By introducing a refined three-phase framework for matrix multiplication, the authors establish new asymptotic upper bounds and provide conditional lower bounds that clarify the inherent difficulty of these problems, particularly in the presence of negative edge weights.

Introduction

The search for "truly subcubic" algorithms for the All-Pairs Shortest Paths (APSP) problem—those running in $O(n^{3-\epsilon})$ time—remains a central challenge in theoretical computer science. To bridge the gap between current $O(n^3)$ approaches and theoretical ideals, researchers often investigate structured variants of the problem.

One such variant is the Min-Plus Product (or tropical matrix multiplication), where the standard operations of multiplication and addition are replaced by addition and minimization, respectively. This paper focuses on the Monotone version of this product, where matrix entries follow a non-decreasing pattern. Improvements in this area have direct implications for data structure efficiency and network resilience.

The Monotone Min-Plus Product Framework

The authors achieve their speedup through a sophisticated three-phase framework designed to optimize the Monotone Min-Plus Product:

  1. Phase 1: Approximation: The matrices are "downscaled" by a factor $W$ to compute a coarse approximation of the product. This baseline allows the algorithm to prune the search space by identifying regions where the optimal solution cannot reside.
  2. Phase 2: Randomized Witness Finding: Using randomized sampling combined with fast rectangular matrix multiplication, the algorithm identifies "witnesses"—the specific indices that produce the minimum sums—for the majority of the entries in the resulting matrix. The paper also provides a derandomization technique to make this process deterministic without a loss in efficiency.
  3. Phase 3: Monotone Cleanup: For the remaining entries, the algorithm exploits the monotonicity of the rows. Since the values are non-decreasing, the number of times a "minimum" value can change is strictly bounded. This allows the use of efficient data structures, such as balanced binary search trees, to iterate through candidates without redundant checks.

Applications and Key Results

Range Mode

The Range Mode problem asks for the most frequent element within any given sub-interval of an array. This is a staple of database indexing and data analysis. The paper improves both batch and dynamic versions of this problem:

  • Batch Range Mode: Improved from $O(n^{1.4854})$ to $O(n^{1.4805})$.
  • Dynamic Range Mode: Achieved a query time of $O(n^{0.6524})$, surpassing the previous best of $O(n^{0.6560})$.

Single Source Replacement Paths (SSRP)

In network routing, SSRP identifies the next best path from a source to a destination if a specific edge or node on the original shortest path fails. This paper establishes a formal link between SSRP on graphs with negative weights and the Bounded-Difference Min-Plus Product.

For weights in the range $\{-M, \dots, M\}$, the authors achieved a complexity of $O(M^{0.8043}n^{2.4957})$. This result is particularly significant as it suggests that SSRP with small negative weights may be computationally easier than unweighted APSP, which is widely believed to require $n^{2.5}$ time.

Theoretical Insights: The Negative Weight Gap

A core contribution of this work is the exploration of the "Negative Weight Gap." The authors demonstrate that SSRP with negative weights is likely inherently more difficult than the version with strictly positive weights. They prove that a significantly faster negative-weight SSRP algorithm would imply a breakthrough in structured matrix multiplication that has remained elusive for decades. This provides a conditional lower bound that explains the persistent performance difference between positive and negative weight graph algorithms.

Conclusion and Future Directions

While the paper sets new "speed records" for these problems, the results are currently tied to the matrix multiplication exponent $\omega$. As the bounds for $\omega$ (currently $\approx 2.373$) improve, these algorithms will naturally become faster.

However, the authors note that these techniques often involve "galactic" algorithms with high constant factors, making them more relevant for theoretical complexity than immediate industrial application. Future work remains in closing the gap between positive and negative weight SSRP and in developing practically efficient versions of these structured matrix products.

Summary updated

BibTeX
@inproceedings{gu2021faster,
  author = {Yuzhou Gu and Adam Polak and Virginia Vassilevska Williams and Yinzhan Xu},
  title = {{Faster Monotone Min-Plus Product, Range Mode, and Single Source Replacement Paths}},
  booktitle = {ICALP},
  year = {2021},
  doi = {10.4230/lipics.icalp.2021.75},
}
Figure