arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.13180cs.DScs.CC
收藏

关于子矩阵的更新与查询

On Updating and Querying Submatrices

Jason Yang, Jun Wan

摘要:

本文研究了$d$维更新查询问题。我们提供了更新和查询运行时间的下限,假设一个长期存在的猜想最小加矩阵乘法,以及接近下限的算法。给定一个$d$维矩阵,\textit{update}将给定子矩阵中的每个元素从$x$变为$x\bigtriangledown v$,其中$v$是给定常数. \textit{query}返回给定子矩阵中所有元素的$\bigtriangleup$。我们研究了$\bigtriangledown$和$\bigtriangleup$都是交换和结合二元算子的情况。当$d = 1$时,通过使用具有惰性传播的段树,可以在$O(\log N)$最坏情况时间内对许多$(\bigtriangledown,\bigtriangleup)$执行更新和查询。然而,当$d\ge 2$,类似的技术通常不能推广。我们表明,如果最小加矩阵乘法不能计算在$O(N^{3-\varepsilon})$时间为任何$\varepsilon>0$(这是被广泛认为是这种情况),然后为$(\bigtriangledown,\bigtriangleup)=(+,\min)$,无论是更新或查询都不能运行在$O(N^{1-\varepsilon})$时间为任何常数$\varepsilon>0$,或预处理不能运行在多项式时间。最后,我们展示了一个特殊的情况下,懒惰的传播可以概括为$d\ge 2$和更新和查询可以在$O(\log^d N)$最坏的情况下运行。我们提出了一个满足此运行时间的算法,并且比以前工作的类似算法更简单。

英文摘要:

In this paper, we study the $d$-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 $d$-dimensional matrix, an \textit{update} changes each element in a given submatrix from $x$ to $x\bigtriangledown v$, where $v$ 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 = 1$, updates and queries can be performed in $O(\log N)$ worst-case time for many $(\bigtriangledown,\bigtriangleup)$ by using a segment tree with lazy propagation. However, when $d\ge 2$, similar techniques usually cannot be generalized. We show that if min-plus matrix multiplication cannot be computed in $O(N^{3-\varepsilon})$ time for any $\varepsilon>0$ (which is widely believed to be the case), then for $(\bigtriangledown,\bigtriangleup)=(+,\min)$, either updates or queries cannot both run in $O(N^{1-\varepsilon})$ time for any constant $\varepsilon>0$, or preprocessing cannot run in polynomial time. Finally, we show a special case where lazy propagation can be generalized for $d\ge 2$ and where updates and queries can run in $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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑