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 条
  • [31] A practical O(n log2 n) time algorithm for computing the triplet distance on binary trees
    Sand, Andreas
    Brodal, Gerth Stolting
    Fagerberg, Rolf
    Pedersen, Christian N. S.
    Mailund, Thomas
    BMC BIOINFORMATICS, 2013, 14
  • [32] A practical O(n log2n) time algorithm for computing the triplet distance on binary trees
    Andreas Sand
    Gerth Stølting Brodal
    Rolf Fagerberg
    Christian NS Pedersen
    Thomas Mailund
    BMC Bioinformatics, 14
  • [33] An O(n(3) log log n/log(2) n) time algorithm for all pairs shortest paths
    Han, Yijie
    Takaoka, Tadao
    JOURNAL OF DISCRETE ALGORITHMS, 2016, 38-41 : 9 - 19
  • [34] An efficient algorithm for the longest common palindromic subsequence problem
    Liang, Ting-Wei
    Yang, Chang-Biau
    Huang, Kuo-Si
    THEORETICAL COMPUTER SCIENCE, 2022, 922 : 475 - 485
  • [35] A new flexible algorithm for the longest common subsequence problem
    Rick, C
    COMBINATORIAL PATTERN MATCHING, 1995, 937 : 340 - 351
  • [36] A Fast Longest Common Subsequence Algorithm for Similar Strings
    Arslan, Abdullah N.
    LANGUAGE AND AUTOMATA THEORY AND APPLICATIONS, 2010, 6031 : 82 - 93
  • [37] Computing the shortest watchtower of a polyhedral terrain in O(n log n) time
    Zhu, BH
    COMPUTATIONAL GEOMETRY-THEORY AND APPLICATIONS, 1997, 8 (04): : 181 - 193
  • [38] Computing Smallest and Largest Repetition Factorizations in O(n log n) Time
    Inoue, Hiroe
    Matsuoka, Yoshiaki
    Nakashima, Yuto
    Inenaga, Shunsuke
    Bannai, Hideo
    Takeda, Masayuki
    PROCEEDINGS OF THE PRAGUE STRINGOLOGY CONFERENCE 2016, 2016, : 135 - 145
  • [39] A Fast Multiple Longest Common Subsequence (MLCS) Algorithm
    Wang, Qingguo
    Korkin, Dmitry
    Shang, Yi
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2011, 23 (03) : 321 - 334
  • [40] An approximation algorithm for multiple longest common subsequence problems
    Tsai, YT
    Hsu, JT
    6TH WORLD MULTICONFERENCE ON SYSTEMICS, CYBERNETICS AND INFORMATICS, VOL XII, PROCEEDINGS: INDUSTRIAL SYSTEMS AND ENGINEERING II, 2002, : 456 - 460