arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2408.04613cs.DS
收藏

核心稀疏 Monge 矩阵乘法:改进算法与应用

Core-Sparse Monge Matrix Multiplication: Improved Algorithm and Applications

Paweł Gawrychowski, Egor Gorbachev, Tomasz Kociumaka

AI总结:

本文研究核心稀疏 Monge 矩阵乘法,证明乘积矩阵核心大小的线性上界,给出 O((n+δ) log n) 时间算法,并应用于加权序列比对和最长递增子序列的快速重建。

摘要:

Min-plus 矩阵乘法广泛应用于处理图上距离或可通过动态规划求解的许多问题。在 APSP 假设下,两个一般 n×n 矩阵的 min-plus 乘积不存在亚立方时间算法,但结构化矩阵允许更快的解法。平面图算法常使用 Monge 矩阵,其 min-plus 乘法过程可在 O(n²) 时间内完成。许多序列比对问题的结果,如编辑距离和最长递增子序列,应用简单的单位 Monge 矩阵,其 min-plus 乘积可在 O(n log n) 时间内计算 [Tiskin, SODA'10]。Russo [SPIRE'11] 识别出核心大小 δ 是底层矩阵表示背后的结构参数,并针对任意 Monge 矩阵给出了 O((n+δ) log³ n) 时间的 min-plus 乘法过程。\n\n在本工作中,我们证明了乘积矩阵的核心大小关于输入矩阵核心大小的线性上界,并展示了如何在 O((n+δ) log n) 时间内解决核心稀疏 Monge 矩阵乘法问题,与简单单位 Monge 矩阵的复杂度相匹配,其中 δ = O(n)。正如 Gorbachev 和 Kociumaka [STOC'25] 最近关于带整数权重的编辑距离工作所证明的那样,我们的推广为加权序列比对问题的加速开辟了可能性。此外,我们的乘法算法能够高效地恢复输出矩阵任意条目的见证。这使得我们例如可以在 Õ(n) 时间内预处理一个大小为 n 的整数数组,从而任何子数组的最长递增子序列都能在 Õ(ℓ) 时间内被重建,其中 ℓ 是所报告子序列的长度。相比之下,Karthik C. S. 和 Rahul [arXiv, 2024] 最近在 Õ(n^{3/2}) 时间的预处理后实现了 Õ(ℓ+n^{1/2}) 时间的报告。

英文摘要:

Min-plus matrix multiplication is used in many problems operating on distances in graphs or solvable by dynamic programming. Assuming the APSP hypothesis, there is no subcubic-time algorithm for the min-plus product of two general $n\times n$ matrices, but structured matrices admit faster solutions. Planar graph algorithms often use Monge matrices, which have an $O(n^2)$-time min-plus multiplication procedure. Many results for sequence alignment problems, such as edit distance and longest increasing subsequence, apply simple unit-Monge matrices, whose min-plus product can be computed in $O(n\log n)$ time [Tiskin, SODA'10]. Russo [SPIRE'11] identified the core size $δ$ as the structural parameter behind the underlying matrix representation and showed an $O((n+δ)\log^3 n)$-time min-plus multiplication procedure for arbitrary Monge matrices. In this work, we prove a linear bound on the core size of the product matrix in terms of the core sizes of the input matrices and show how to solve the core-sparse Monge matrix multiplication problem in $O((n+δ)\log n)$ time, matching the complexity for simple unit-Monge matrices, where $δ= O(n)$. As witnessed by the recent work of Gorbachev and Kociumaka [STOC'25] for edit distance with integer weights, our generalization opens up the possibility of speed-ups for weighted sequence alignment problems. Furthermore, our multiplication algorithm can efficiently recover the witness for any entry of the output matrix. This allows us, for example, to preprocess an integer array of size $n$ in $\tilde{O}(n)$ time so that the longest increasing subsequence of any sub-array can be reconstructed in $\tilde{O}(\ell)$ time, where $\ell$ is the length of the reported subsequence. In comparison, Karthik C. S. and Rahul [arXiv, 2024] recently achieved $\tilde{O}(\ell+n^{1/2})$-time reporting after $\tilde{O}(n^{3/2})$-time preprocessing.

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

↑