An improved O(Rlog log n + n) time algorithm for computing the longest common subsequence

被引:0
|
作者
机构
[1] Zhu, Daxin
[2] Wang, Lei
[3] Wang, Xiaodong
关键词
Balanced binary searches - Input sequence - Longest common subsequences - Positive integers - Special operations - Time algorithms - Time and space complexity - Time complexity;
D O I
暂无
中图分类号
学科分类号
摘要
In this paper, we revisit the much studied LCS problem for two given sequences. Based on the algorithm of Iliopoulos and Rahman for solving the LCS problem, we have suggested 3 new improved algorithms. We first reformulate the problem in a very succinct form. The problem LCS is abstracted to an abstract data type DS on an ordered positive integer set with a special operation Update(S; x). For the two input sequences X and Y of equal length n, the first improved algorithm uses a van Emde Boas tree for DS and its time and space complexities are O(Rlog log n + n) and O(R), where R is the number of matched pairs of the two input sequences. The second algorithm uses a balanced binary search tree for DS and its time and space complexities are O(Rlog L+n) and O(R), where L is the length of the longest common subsequence of X and Y. The third algorithm uses an ordered vector for DS and its time and space complexities are O(nL) and O(R).
引用
收藏
相关论文
共 50 条
  • [1] An improved algorithm for the longest common subsequence problem
    Mousavi, Sayyed Rasoul
    Tabataba, Farzaneh
    COMPUTERS & OPERATIONS RESEARCH, 2012, 39 (03) : 512 - 520
  • [2] A fast algorithm for computing a longest common increasing subsequence
    Yang, IH
    Huang, CP
    Chao, KM
    INFORMATION PROCESSING LETTERS, 2005, 93 (05) : 249 - 253
  • [3] A New Efficient Algorithm for Computing the Longest Common Subsequence
    Iliopoulos, Costas S.
    Rahman, M. Sohel
    THEORY OF COMPUTING SYSTEMS, 2009, 45 (02) : 355 - 371
  • [4] A New Efficient Algorithm for Computing the Longest Common Subsequence
    Costas S. Iliopoulos
    M. Sohel Rahman
    Theory of Computing Systems, 2009, 45 : 355 - 371
  • [5] A new efficient algorithm for computing the longest common subsequence
    Rahman, M. Sohel
    Iliopoulos, Costas S.
    ALGORITHMIC ASPECTS IN INFORMATION AND MANAGEMENT, PROCEEDINGS, 2007, 4508 : 82 - +
  • [6] APPROXIMATING LONGEST COMMON SUBSEQUENCE IN LINEAR TIME: BEATING THE √n BARRIER
    Hajiaghayi, Mohammadtaghi
    Seddighin, Masoud
    Seddighin, Saeedreza
    Sun, Xiaorui
    SIAM JOURNAL ON COMPUTING, 2022, 51 (04) : 1341 - 1367
  • [7] A linear space algorithm for computing a longest common increasing subsequence
    Sakai, Yoshifumi
    INFORMATION PROCESSING LETTERS, 2006, 99 (05) : 203 - 207
  • [8] Computing a Longest Common Palindromic Subsequence
    Chowdhury, Shihabur Rahman
    Hasan, Md. Mahbubul
    Iqbal, Sumaiya
    Rahman, M. Sohel
    FUNDAMENTA INFORMATICAE, 2014, 129 (04) : 329 - 340
  • [9] A Linear-Time n0.4-Approximation for Longest Common Subsequence
    Bringmann, Karl
    Cohen-Addad, Vincent
    Das, Debarati
    ACM TRANSACTIONS ON ALGORITHMS, 2023, 19 (01)
  • [10] Quantum algorithm for longest common subsequence
    Xu, Wen-Xu
    Liao, Ming-Hong
    Tien Tzu Hsueh Pao/Acta Electronica Sinica, 2007, 36 (SUPPL. 2): : 99 - 103