English

Faster Min-Plus Product for Monotone Instances

Data Structures and Algorithms 2022-06-20 v2

Abstract

In this paper, we show that the time complexity of monotone min-plus product of two n×nn\times n matrices is O~(n(3+ω)/2)=O~(n2.687)\tilde{O}(n^{(3+\omega)/2})=\tilde{O}(n^{2.687}), where ω<2.373\omega < 2.373 is the fast matrix multiplication exponent [Alman and Vassilevska Williams 2021]. That is, when AA is an arbitrary integer matrix and BB is either row-monotone or column-monotone with integer elements bounded by O(n)O(n), computing the min-plus product CC where Ci,j=mink{Ai,k+Bk,j}C_{i,j}=\min_k\{A_{i,k}+B_{k,j}\} takes O~(n(3+ω)/2)\tilde{O}(n^{(3+\omega)/2}) time, which greatly improves the previous time bound of O~(n(12+ω)/5)=O~(n2.875)\tilde{O}(n^{(12+\omega)/5})=\tilde{O}(n^{2.875}) [Gu, Polak, Vassilevska Williams and Xu 2021]. Then by simple reductions, this means the following problems also have O~(n(3+ω)/2)\tilde{O}(n^{(3+\omega)/2}) time algorithms: (1) AA and BB are both bounded-difference, that is, the difference between any two adjacent entries is a constant. The previous results give time complexities of O~(n2.824)\tilde{O}(n^{2.824}) [Bringmann, Grandoni, Saha and Vassilevska Williams 2016] and O~(n2.779)\tilde{O}(n^{2.779}) [Chi, Duan and Xie 2022]. (2) AA is arbitrary and the columns or rows of BB are bounded-difference. Previous result gives time complexity of O~(n2.922)\tilde{O}(n^{2.922}) [Bringmann, Grandoni, Saha and Vassilevska Williams 2016]. (3) The problems reducible to these problems, such as language edit distance, RNA-folding, scored parsing problem on BD grammars. [Bringmann, Grandoni, Saha and Vassilevska Williams 2016]. Finally, we also consider the problem of min-plus convolution between two integral sequences which are monotone and bounded by O(n)O(n), and achieve a running time upper bound of O~(n1.5)\tilde{O}(n^{1.5}). Previously, this task requires running time O~(n(9+177)/12)=O(n1.859)\tilde{O}(n^{(9+\sqrt{177})/12}) = O(n^{1.859}) [Chan and Lewenstein 2015].

Keywords

Cite

@article{arxiv.2204.04500,
  title  = {Faster Min-Plus Product for Monotone Instances},
  author = {Shucheng Chi and Ran Duan and Tianle Xie and Tianyi Zhang},
  journal= {arXiv preprint arXiv:2204.04500},
  year   = {2022}
}

Comments

Add acknowledgment

R2 v1 2026-06-24T10:43:17.821Z