Skip to main content
QUICK REVIEW

[论文解读] A Sub-Quadratic Algorithm for the Longest Common Increasing Subsequence Problem

Lech Duraj|arXiv (Cornell University)|Feb 19, 2019
Algorithms and Data CompressionComputer Science参考文献 31被引用 1
一句话总结

本文提出了首个针对最长公共上升子序列(LCIS)问题的亚二次时间算法,时间复杂度为 O(n² / log¹ᐟ⁶ n)。该工作引入了一种新颖的“对数削峰”技术,通过识别并利用序列间稀疏的‘关键’符号匹配,避免依赖传统方法(如 LCS 中常用的四 Russians技巧)。

ABSTRACT

The Longest Common Increasing Subsequence problem (LCIS) is a natural variant of the celebrated Longest Common Subsequence (LCS) problem. For LCIS, as well as for LCS, there is an ?(n²)-time algorithm and a SETH-based conditional lower bound of ?(n^{2-ε}). For LCS, there is also the Masek-Paterson ?(n²/log n)-time algorithm, which does not seem to adapt to LCIS in any obvious way. Hence, a natural question arises: does any (slightly) sub-quadratic algorithm exist for the Longest Common Increasing Subsequence problem? We answer this question positively, presenting a ?(n²/log^a n)-time algorithm for a = 1/6-o(1). The algorithm is not based on memorizing small chunks of data (often used for logarithmic speedups, including the "Four Russians Trick" in LCS), but rather utilizes a new technique, bounding the number of significant symbol matches between the two sequences.

研究动机与目标

  • 为突破 LCIS 问题的 O(n²) 时间瓶颈而努力,尽管存在基于 SETH 的条件性下界,但此前尚未发现已知的亚二次算法。
  • 开发一种可在 LCIS 中实现对数削峰的技术,类似于 LCS 中四 Russians 技巧的应用,但需适配上升子序列的约束条件。
  • 识别并利用符号匹配的一个稀疏子集——即‘关键配对’,以将计算量降至 O(n²) 以下。
  • 证明 LCIS 的亚二次算法是可行的,从而挑战 LCIS 天然为二次时间的假设。

提出的方法

  • 引入‘关键配对’的概念——即满足 A[x] = B[y] 且以 (x,y) 结尾的 LCIS 长度在之前位置中达到最大值的符号匹配 (x,y)。
  • 采用仅处理关键配对的动态规划方法,并使用 van Emde Boas 树高效维护每个位置的 LCIS 长度。
  • 根据阈值 t = n / √t 将符号分类为‘频繁’或‘稀少’,其中频繁符号在 B 中出现次数 ≥ √t 次。
  • 对稀少符号,采用基于二分查找的方法计算后续 LCIS 扩展,总时间复杂度受 O(n(log log n)² / √t) 限制。
  • 对频繁符号,利用关键配对的稀疏性(O(n²/t) 个此类配对)将每个符号的操作次数限制在 O(n² log log n / t) 以内。
  • 综合两种情形,并通过优化阈值 t,最终实现 O(n²(log log n)² / log¹ᐟ⁶ n) 的时间复杂度。

实验结果

研究问题

  • RQ1在 SETH 假设下 LCIS 存在 O(n²−ε) 条件性下界的前提下,能否设计出亚二次算法?
  • RQ2四 Russians 技巧在 LCS 中有效,是否可适配于 LCIS?抑或需要根本性的新方法?
  • RQ3有意义的符号匹配数(即关键配对)能否被控制在 O(n²) 以下,从而实现 LCIS 中的对数削峰?
  • RQ4LCIS 中关键配对的最紧上界是多少?其数量如何影响算法的时间复杂度?

主要发现

  • 本文提出了一种 O(n² / log¹ᐟ⁶ n) 的 LCIS 算法,是该问题首个亚二次算法。
  • 关键配对的数量被证明为 O(n² / log¹ᐟ⁶ n),该值为 o(n²),使得算法能够突破二次时间的限制。
  • 该算法采用一种新颖的‘对数削峰’技术,通过剪枝非关键符号匹配实现,而非像 LCS 中那样依赖小块记忆化。
  • 通过将符号划分为频繁与稀少两类,并对每类应用不同的优化策略,最终实现复杂度平衡,其中阈值 t = n / √t 经过调优以达到最优。
  • 算法正确计算了 LCIS 长度,其正确性由动态规划状态中使用 van Emde Boas 树维护的不变性性质所证明。
  • 本文推测可能存在 O(n²(log log n)^k / log n) 的算法,暗示未来仍有进一步优化的空间。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。