English

$(\min,+)$ Matrix and Vector Products for Inputs Decomposable into Few Monotone Subsequences

Data Structures and Algorithms 2023-09-06 v1 Computational Complexity

Abstract

We study the time complexity of computing the (min,+)(\min,+) matrix product of two n×nn\times n integer matrices in terms of nn and the number of monotone subsequences the rows of the first matrix and the columns of the second matrix can be decomposed into. In particular, we show that if each row of the first matrix can be decomposed into at most m1m_1 monotone subsequences and each column of the second matrix can be decomposed into at most m2m_2 monotone subsequences such that all the subsequences are non-decreasing or all of them are non-increasing then the (min,+)(\min,+) product of the matrices can be computed in O(m1m2n2.569)O(m_1m_2n^{2.569}) time. On the other hand, we observe that if all the rows of the first matrix are non-decreasing and all columns of the second matrix are non-increasing or {\em vice versa} then this case is as hard as the general one. Similarly, we also study the time complexity of computing the (min,+)(\min,+) convolution of two nn-dimensional integer vectors in terms of nn and the number of monotone subsequences the two vectors can be decomposed into. We show that if the first vector can be decomposed into at most m1m_1 monotone subsequences and the second vector can be decomposed into at most m2m_2 subsequences such that all the subsequences of the first vector are non-decreasing and all the subsequences of the second vector are non-increasing or {\em vice versa} then their (min,+)(\min,+) convolution can be computed in O~(m1m2n1.5)\tilde{O}(m_1m_2n^{1.5}) time. On the other, the case when both vectors are non-decreasing or both of them are non-increasing is as hard as the general case.

Keywords

Cite

@article{arxiv.2309.01136,
  title  = {$(\min,+)$ Matrix and Vector Products for Inputs Decomposable into Few Monotone Subsequences},
  author = {Andrzej Lingas and Mia Persson},
  journal= {arXiv preprint arXiv:2309.01136},
  year   = {2023}
}

Comments

16 pages, accepted by COCOON 2023

R2 v1 2026-06-28T12:11:26.512Z