A space efficient algorithm for the longest common subsequence in k-length substrings

被引:1
作者
Zhu, Daxin [1 ]
Wang, Lei [2 ]
Wang, Tinran
Wang, Xiaodong [3 ]
机构
[1] Quanzhou Normal Univ, Quanzhou, Peoples R China
[2] Facebook, 1 Hacker Way, Menlo Pk, CA 94052 USA
[3] Fujian Univ Technol, Fuzhou, Peoples R China
关键词
Longest common subsequence; Similarity of strings; Edit distance; Dynamic programming;
D O I
10.1016/j.tcs.2017.05.015
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Two space efficient algorithms to solve the LCSk problem and LCS(>=)k problem are presented in this paper. The algorithms improve the time and space complexities. of the algorithms of Benson et al. [4]. The space cost of the first algorithm to solve the LCSk problem is reduced from O (n(2)) to O (kn), if the size of the two input sequences are both n. The time and space costs of the second algorithm to solve the LCS >= k problem are both improved. The time cost is reduced from O (kn(2)) to O (n(2)), and the space cost is reduced from O (n(2)) to O (kn). In the case of k = O(1), the two algorithms are both linear space algorithms. (C) 2017 Elsevier B.V. All rights reserved.
引用
收藏
页码:79 / 92
页数:14
相关论文
共 19 条
[1]   Weighted LCS [J].
Amir, Amihood ;
Gotthilf, Zvi ;
Shalom, B. Riva .
JOURNAL OF DISCRETE ALGORITHMS, 2010, 8 (03) :273-281
[2]   Generalized LCS [J].
Amir, Amihood ;
Hartman, Tzvika ;
Kapah, Oren ;
Shalom, B. Riva ;
Tsur, Dekel .
THEORETICAL COMPUTER SCIENCE, 2008, 409 (03) :438-449
[3]  
[Anonymous], 1997, ACM SIGACT NEWS
[4]   LCSk: A refined similarity measure [J].
Benson, G. ;
Levy, A. ;
Maimoni, S. ;
Noifeld, D. ;
Shalom, B. R. .
THEORETICAL COMPUTER SCIENCE, 2016, 638 :11-26
[5]  
Benson G, 2013, LECT NOTES COMPUT SC, V8199, P257, DOI 10.1007/978-3-642-41062-8_26
[6]   On the generalized constrained longest common subsequence problems [J].
Chen, Yi-Ching ;
Chao, Kun-Mao .
JOURNAL OF COMBINATORIAL OPTIMIZATION, 2011, 21 (03) :383-392
[7]   Efficient algorithms for the longest common subsequence in k-length substrings [J].
Deorowicz, Sebastian ;
Grabowski, Szymon .
INFORMATION PROCESSING LETTERS, 2014, 114 (11) :634-638
[8]  
Gotthilf Z, 2010, LECT NOTES COMPUT SC, V6393, P250, DOI 10.1007/978-3-642-16321-0_26
[9]   LINEAR SPACE ALGORITHM FOR COMPUTING MAXIMAL COMMON SUBSEQUENCES [J].
HIRSCHBERG, DS .
COMMUNICATIONS OF THE ACM, 1975, 18 (06) :341-343
[10]   FAST ALGORITHM FOR COMPUTING LONGEST COMMON SUBSEQUENCES [J].
HUNT, JW ;
SZYMANSKI, TG .
COMMUNICATIONS OF THE ACM, 1977, 20 (05) :350-353