Faster Algorithm for Computing the Edit Distance between SLP-Compressed Strings
Faster Algorithm for Computing the Edit Distance between SLP-Compressed Strings
复制标题
用于计算 SLP 压缩字符串之间编辑距离的更快算法
DOI:
--
复制
发表时间:
2012
期刊:
影响因子:
--
通讯作者:
Paweł Gawrychowski
中科院分区:
文献类型:
--
作者:
Paweł Gawrychowski
Given two strings described by SLPs of total size n, we show how to compute their edit distance in $mathcal{O}(nNsqrt{logfrac{N}{n}})$ time, where N is the sum of the strings length. The result can be generalized to any rational scoring function, hence we improve the existing $mathcal{O}(nNlog N)$ [10] and $mathcal{O}(nNlogfrac{N}{n})$ [4] time solutions. This gets us even closer to the $mathcal{O}(nN)$ complexity conjectured by Lifshits [7]. The basic tool in our solution is a linear time procedure for computing the max-product of a vector and a unit-Monge matrix, which might be of independent interest.