arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.20337cs.DS
收藏

论 CYK 算法及一族相关 DP 算法的 I/O 复杂度

On the I/O Complexity of the CYK Algorithm and of a Family of Related DP Algorithms

Lorenzo De Stefani, Vedant Gupta

AI总结:

研究矩阵链乘法、最优三角剖分等 DP 及 CYK 算法的 I/O 复杂度,建立多种缓存条件下的渐近紧下界,并给出匹配上界。

摘要:

本文针对一类动态规划算法推导了渐近紧的输入/输出(I/O)复杂度下界,这些算法包括矩阵链乘法、最优多边形三角剖分以及最优二叉搜索树的构造。在不重新计算中间值的假设下,我们建立了 $Ω\left(\frac{n^3}{\sqrt{M}B}\right)$ 的 I/O 下界,其中 $n$ 表示输入规模,$M$ 表示可用快速存储器(高速缓存)的容量。当允许重新计算时,我们证明在 $M < cn$ 的情况下同样的下界成立,其中 $c$ 是一个正常数。在 $M \ge 2n$ 的情况下,我们证明了一个 $Ω\left(n/B\right)$ 的 I/O 下界。我们还讨论了所执行 I/O 操作数在渐近意义下与所给出的每个下界相匹配的算法,因此这些下界是渐近紧的。此外,我们改进了通用方法,以获得 Cocke-Younger-Kasami 算法 I/O 复杂度的下界,其中文法的规模会影响 I/O 复杂度。文中还给出了一个在许多情况下具有渐近匹配性能的上界。

英文摘要:

Asymptotically tight lower bounds are derived for the Input/Output (I/O) complexity of a class of dynamic programming algorithms including matrix chain multiplication, optimal polygon triangulation, and the construction of optimal binary search trees. Assuming no recomputation of intermediate values, we establish an $Ω\left(\frac{n^3}{\sqrt{M}B}\right)$ I/O lower bound, where $n$ denotes the size of the input and $M$ denotes the size of the available fast memory (cache). When recomputation is allowed, we show the same bound holds for $M < cn$, where $c$ is a positive constant. In the case where $M \ge 2n$, we show an $Ω\left(n/B\right)$ I/O lower bound. We also discuss algorithms for which the number of executed I/O operations matches asymptotically each of the presented lower bounds, which are thus asymptotically tight. Additionally, we refine our general method to obtain a lower bound for the I/O complexity of the Cocke-Younger-Kasami algorithm, where the size of the grammar impacts the I/O complexity. An upper bound with asymptotically matching performance in many cases is also provided.

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

↑