提高编辑距离和LCSS计算的索引动态规划
Indexed Dynamic Programming to boost Edit Distance and LCSS Computation
摘要:
对于编辑操作的许多自然子集,存在有效的动态规划解决方案来计算从$S\in[1..σ]^n$到$T\in[1..σ]^m$的编辑距离,通常在最坏情况下在$O(nm)$内,在相应长度$n$和$m$的字符串上(这可能是最佳的),并且在某些特殊情况下(例如,不相交的字母)在时间上在$O(n{+}m)$内。我们描述了如何索引字符串(在线性时间),并使用这样的索引来完善的递归公式的基础上的动态程序,产生更快的算法,在各种模型,在连续的类之间的最坏和最好的情况下,中间困难的实例,从而细化分析超出最坏的情况下的分析。作为一个侧面的结果,我们描述了类似的属性的计算最长的共同子序列$LCSS(S,T)$之间的$S$和$T$,因为它是一个特殊的情况下,编辑距离,我们讨论了类似的算法和分析技术的应用,为其他动态规划解决方案。更正式地说,我们提出了一个参数化的分析的计算复杂性的编辑距离为各种各样的运营商和最长的公共子序列的功能的领域的动态程序矩阵相关的计算。
英文摘要:
There are efficient dynamic programming solutions to the computation of the Edit Distance from $S\in[1..σ]^n$ to $T\in[1..σ]^m$, for many natural subsets of edit operations, typically in time within $O(nm)$ in the worst-case over strings of respective lengths $n$ and $m$ (which is likely to be optimal), and in time within $O(n{+}m)$ in some special cases (e.g. disjoint alphabets). We describe how indexing the strings (in linear time), and using such an index to refine the recurrence formulas underlying the dynamic programs, yield faster algorithms in a variety of models, on a continuum of classes of instances of intermediate difficulty between the worst and the best case, thus refining the analysis beyond the worst case analysis. As a side result, we describe similar properties for the computation of the Longest Common Sub Sequence $LCSS(S,T)$ between $S$ and $T$, since it is a particular case of Edit Distance, and we discuss the application of similar algorithmic and analysis techniques for other dynamic programming solutions. More formally, we propose a parameterized analysis of the computational complexity of the Edit Distance for various set of operators and of the Longest Common Sub Sequence in function of the area of the dynamic program matrix relevant to the computation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。