A Fully Compressed Algorithm for Computing the Edit Distance of Run-Length Encoded Strings
A Fully Compressed Algorithm for Computing the Edit Distance of Run-Length Encoded Strings
复制标题
计算游程编码字符串编辑距离的全压缩算法
DOI:
10.1007/s00453-011-9592-4
复制
发表时间:
2010
期刊:
影响因子:
1.1
通讯作者:
K. Chao
中科院分区:
文献类型:
--
作者:
Kuan;K. Chao
A recent trend in stringology explores the possibility of utilizing text compression to speed up similarity computation between strings. In this line of investigation, run-length encoding is one of the earliest studied compression schemes. Despite its simple coding nature, the only positive result before this work is the computation of the in-del distance (dual of longest common subsequence), which requiresO(mnlogmn) time, wheremandndenote the number of runs of the input strings. The worst-case time complexity of computing the edit distance between two run-length encoded strings still depends on the uncompressed string lengths. In this paper, we break the foundational gap by providing its first “fully compressed” algorithm whose running time depends solely on the compressed string lengths. Specifically, given two strings, compressed intomandnruns,m≤n, we present anO(mn2)-time algorithm for computing the edit distance of the strings. Our approach also yields the first fully compressed solution to approximate matching of a pattern ofmruns in a text ofnruns inO(mn2) time.
DOI:
--
发表时间:
2016
期刊:
影响因子:
--
作者:
Shuhei Denzumi
通讯作者:
Shuhei Denzumi