改进的Dyck编辑距离和RNA折叠近似算法
Improved Approximation Algorithms for Dyck Edit Distance and RNA Folding
摘要:
Dyck语言由平衡的括号序列组成,是最基本的上下文无关语言之一。Dyck编辑距离量化了使给定括号序列平衡所需的编辑(字符插入、删除和替换)数量。RNA折叠涉及类似的问题,其中闭括号可以匹配相同类型的开括号,而不管它们的顺序如何。例如,在RNA Folding中,$\tt{()}$和$\tt{)(}$都是有效匹配,而Dyck语言只允许$\tt{()}$作为匹配。使用快速矩阵乘法,可以在时间上计算这两个问题的精确解$O(n^{2.824})$。虽然组合算法将是更可取的,这两个问题是已知的,至少是一样困难的布尔矩阵乘法。在快速近似算法的组合性质,这两个问题承认$εn$ -添加剂近似$\tilde{O}(\frac{n^2}ε)$时间。此外,存在用于近线性时间中的Dyck编辑距离的$O(\log n)$因子近似算法。在本文中,我们设计了一个常数因子近似算法的Dyck编辑距离,运行在$O(n^{1.971})$时间。此外,我们开发了一个运行在$\tilde{O}(\frac{n^2}ε)$时间的$(1+ε)$ -因子近似算法,它改进了早期的加法近似。最后,我们设计了一个$(3+ε)$ -近似,需要$\tilde{O}(\frac{nd}ε)$时间,其中$d\ge 1$是上界寻求的距离。至于RNA折叠,对于任何$s\ge1$,我们设计了一个因子- $s$近似算法,该算法在$O(n+(\frac{n}{s})^3)$时间内运行。据我们所知,这是RNA折叠的第一个非平凡近似算法,可以低于$n^2$屏障。我们所有的算法都是组合的。
英文摘要:
The Dyck language, which consists of well-balanced sequences of parentheses, is one of the most fundamental context-free languages. The Dyck edit distance quantifies the number of edits (character insertions, deletions, and substitutions) required to make a given parenthesis sequence well-balanced. RNA Folding involves a similar problem, where a closing parenthesis can match an opening parenthesis of the same type irrespective of their ordering. For example, in RNA Folding, both $\tt{()}$ and $\tt{)(}$ are valid matches, whereas the Dyck language only allows $\tt{()}$ as a match. Using fast matrix multiplication, it is possible to compute their exact solutions of both problems in time $O(n^{2.824})$. Whereas combinatorial algorithms would be more desirable, the two problems are known to be at least as hard as Boolean matrix multiplication. In terms of fast approximation algorithms that are combinatorial in nature, both problems admit an $εn$-additive approximation in $\tilde{O}(\frac{n^2}ε)$ time. Further, there is a $O(\log n)$-factor approximation algorithm for Dyck edit distance in near-linear time. In this paper, we design a constant-factor approximation algorithm for Dyck edit distance that runs in $O(n^{1.971})$ time. Moreover, we develop a $(1+ε)$-factor approximation algorithm running in $\tilde{O}(\frac{n^2}ε)$ time, which improves upon the earlier additive approximation. Finally, we design a $(3+ε)$-approximation that takes $\tilde{O}(\frac{nd}ε)$ time, where $d\ge 1$ is an upper bound on the sought distance. As for RNA folding, for any $s\ge1$, we design a factor-$s$ approximation algorithm that runs in $O(n+(\frac{n}{s})^3)$ time. To the best of our knowledge, this is the first nontrivial approximation algorithm for RNA Folding that can go below the $n^2$ barrier. All our algorithms are combinatorial.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。