FAST LINEAR-SPACE COMPUTATIONS OF LONGEST COMMON SUBSEQUENCES

被引:37
作者
APOSTOLICO, A
BROWNE, S
GUERRA, C
机构
[1] UNIV LAQUILA,DIPARTIMENTO MATEMAT PURA & APPLICATA,I-67100 LAQUILA,ITALY
[2] UNIV ROME 1,DIPARTIMENTO MATEMAT,ROME,ITALY
基金
美国国家科学基金会;
关键词
D O I
10.1016/0304-3975(92)90132-Y
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Space saving techniques in computations of a longest common subsequence (LCS) of two strings are crucial in many applications, notably, in molecular sequence comparisons. For about ten years, however, the only linear-space LCS algorithm known required time quadratic in the length of the input, for all inputs. This paper reviews linear-space LCS computations in connection with two classical paradigms originally designed to take less than quadratic time in favorable circumstances. The objective is to achieve the space reduction without alteration of the asymptotic time complexity of the original algorithm. The first one of the resulting constructions takes time O(n(m-l)), and is thus suitable for cases where the LCS is expected to be close to the shortest input string. The second takes time O(ml log(min[s,m,2n/l])) and suits cases where one of the inputs is much shorter than the other. Here m and n (m less-than-or-equal-to n) are the lengths of the two input strings, l is the length of the longest common subsequences and s is the size of the alphabet. Along the way, a very simple 0(m(m-l)) time algorithm is also derived for the case of strings of equal length.
引用
收藏
页码:3 / 17
页数:15
相关论文
共 16 条
[1]  
AHO AV, 1976, J ACM, V23, P1, DOI 10.1145/321921.321922
[3]   THE LONGEST COMMON SUBSEQUENCE PROBLEM REVISITED [J].
APOSTOLICO, A ;
GUERRA, C .
ALGORITHMICA, 1987, 2 (03) :315-336
[4]  
APOSTOLICO A, 1985, 23RD P ALL C MONT
[5]  
BOGART KP, 1983, INTRO COMBINATORICS
[6]  
BROWN MR, 1978, 10TH P STOC SAN DIEG, P19
[7]   ALGORITHMS FOR LONGEST COMMON SUBSEQUENCE PROBLEM [J].
HIRSCHBERG, DS .
JOURNAL OF THE ACM, 1977, 24 (04) :664-675
[8]   FAST ALGORITHM FOR COMPUTING LONGEST COMMON SUBSEQUENCES [J].
HUNT, JW ;
SZYMANSKI, TG .
COMMUNICATIONS OF THE ACM, 1977, 20 (05) :350-353
[9]  
KUMAR SK, 1987, ACTA INFORM, V24, P353, DOI 10.1007/BF00265993
[10]  
MARTINEZ H, 1984, B MATH BIOL, V46