An Improved Algorithm of Finding a Maximal Common Subsequence 


Vol. 50,  No. 9, pp. 737-745, Sep.  2023
10.5626/JOK.2023.50.9.737


PDF

  Abstract

A maximal common subsequence (MCS) of two strings is a common subsequence that cannot be extended by inserting any character. Unlike the longest common subsequence (LCS), the length of MCS can vary as the longest MCS is an LCS. Although LCS is commonly used to compare similarities of two sequences, computing can take a significant amount of time. Hence, finding a longer MCS is important, as it can be computed faster than the LCS. An algorithm was proposed to compute one of the MCSs of two strings X and Y of total length n using O(kn) space and O(n√(logn/loglogn)) time. Improved algorithms were also proposed. In this paper, we present an algorithm that can check for more characters to compute an MCS. The algorithm proposed in this paper runs in O(kn) space and O(n√(logn/loglogn)) time for a given constant k. Experimental results using both real and randomly generated data showed that the length of the MCS computed by the algorithm proposed in this paper could be up to 6.31 times longer than those computed by previous algorithms.


  Statistics
Cumulative Counts from November, 2022
Multiple requests among the same browser session are counted as one view. If you mouse over a chart, the values of data points will be shown.


  Cite this article

[IEEE Style]

H. Shin, J. C. Na, J. S. Sim, "An Improved Algorithm of Finding a Maximal Common Subsequence," Journal of KIISE, JOK, vol. 50, no. 9, pp. 737-745, 2023. DOI: 10.5626/JOK.2023.50.9.737.


[ACM Style]

Hyeonjun Shin, Joong Chae Na, and Jeong Seop Sim. 2023. An Improved Algorithm of Finding a Maximal Common Subsequence. Journal of KIISE, JOK, 50, 9, (2023), 737-745. DOI: 10.5626/JOK.2023.50.9.737.


[KCI Style]

신현준, 나중채, 심정섭, "극대공통부분서열을 찾는 개선된 알고리즘," 한국정보과학회 논문지, 제50권, 제9호, 737~745쪽, 2023. DOI: 10.5626/JOK.2023.50.9.737.


[Endnote/Zotero/Mendeley (RIS)]  Download


[BibTeX]  Download



Search




Journal of KIISE

  • ISSN : 2383-630X(Print)
  • ISSN : 2383-6296(Electronic)
  • KCI Accredited Journal

Editorial Office

  • Tel. +82-2-588-9240
  • Fax. +82-2-521-1352
  • E-mail. chwoo@kiise.or.kr