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 条
  • [21] An O(n log n) Time Algorithm for Computing the Path-Length Distance Between Trees
    Bryant, David
    Scornavacca, Celine
    ALGORITHMICA, 2019, 81 (09) : 3692 - 3706
  • [22] An O(n log n) Average Time Algorithm for Computing the Shortest Network under a Given Topology
    G. Xue
    D.-Z. Du
    Algorithmica, 1999, 23 : 354 - 362
  • [23] An O(n log n) average time algorithm for computing the shortest network under a given topology
    Xue, G
    Du, DZ
    ALGORITHMICA, 1999, 23 (04) : 354 - 362
  • [24] Computing the Girth of a Planar Graph in O (n log n) Time
    Weimann, Oren
    Yuster, Raphael
    AUTOMATA, LANGUAGES AND PROGRAMMING, PT I, 2009, 5555 : 764 - +
  • [25] CONSTRAINED LONGEST COMMON SUBSEQUENCE COMPUTING ALGORITHMS IN PRACTICE
    Deorowicz, Sebastian
    Obstoj, Joanna
    COMPUTING AND INFORMATICS, 2010, 29 (03) : 427 - 445
  • [26] Computing the longest common almost-increasing subsequence
    Bhuiyan, Mohammad Tawhidul Hasan
    Alam, Muhammad Rashed
    Rahman, M. Sohel
    THEORETICAL COMPUTER SCIENCE, 2022, 930 : 157 - 178
  • [27] COMPUTING MINIMAL TRIANGULATIONS IN TIME O(nα log n) = o(n2.376)
    Heggernes, Pinar
    Telle, Jan Arne
    Villanger, Yngve
    SIAM JOURNAL ON DISCRETE MATHEMATICS, 2005, 19 (04) : 900 - 913
  • [28] Computing Minimal Triangulations in Time O(nα log n) = o(n2.376)
    Heggernes, Pinar
    Telle, Jan Arne
    Villanger, Yngve
    PROCEEDINGS OF THE SIXTEENTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, 2005, : 907 - 916
  • [29] AN O(N LOG N) ALGORITHM FOR COMPUTING A LINK CENTER IN A SIMPLE POLYGON
    DJIDJEV, HN
    LINGAS, A
    SACK, JR
    LECTURE NOTES IN COMPUTER SCIENCE, 1989, 349 : 96 - 107
  • [30] A Scalable Approximation Algorithm for Weighted Longest Common Subsequence
    Buhler, Jeremy
    Lavastida, Thomas
    Lu, Kefu
    Moseley, Benjamin
    EURO-PAR 2021: PARALLEL PROCESSING, 2021, 12820 : 368 - 384