English

On Updating and Querying Submatrices

Data Structures and Algorithms 2020-10-27 v1 Computational Complexity

Abstract

In this paper, we study the dd-dimensional update-query problem. We provide lower bounds on update and query running times, assuming a long-standing conjecture on min-plus matrix multiplication, as well as algorithms that are close to the lower bounds. Given a dd-dimensional matrix, an \textit{update} changes each element in a given submatrix from xx to xvx\bigtriangledown v, where vv is a given constant. A \textit{query} returns the \bigtriangleup of all elements in a given submatrix. We study the cases where \bigtriangledown and \bigtriangleup are both commutative and associative binary operators. When d=1d = 1, updates and queries can be performed in O(logN)O(\log N) worst-case time for many (,)(\bigtriangledown,\bigtriangleup) by using a segment tree with lazy propagation. However, when d2d\ge 2, similar techniques usually cannot be generalized. We show that if min-plus matrix multiplication cannot be computed in O(N3ε)O(N^{3-\varepsilon}) time for any ε>0\varepsilon>0 (which is widely believed to be the case), then for (,)=(+,min)(\bigtriangledown,\bigtriangleup)=(+,\min), either updates or queries cannot both run in O(N1ε)O(N^{1-\varepsilon}) time for any constant ε>0\varepsilon>0, or preprocessing cannot run in polynomial time. Finally, we show a special case where lazy propagation can be generalized for d2d\ge 2 and where updates and queries can run in O(logdN)O(\log^d N) worst-case time. We present an algorithm that meets this running time and is simpler than similar algorithms of previous works.

Keywords

Cite

@article{arxiv.2010.13180,
  title  = {On Updating and Querying Submatrices},
  author = {Jason Yang and Jun Wan},
  journal= {arXiv preprint arXiv:2010.13180},
  year   = {2020}
}
R2 v1 2026-06-23T19:38:04.549Z