Skip to main content

The longest common subsequence problem for small alphabet size between many strings

  • Conference paper
  • First Online:
Algorithms and Computation (ISAAC 1992)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 650))

Included in the following conference series:

Abstract

Given two or more strings (for example, DNA and amino acid sequences), the longest common subsequence (LCS) problem is to determine the longest common subsequence obtained by deleting zero or more symbols from each string. The algorithms for computing an LCS between two strings were given by many papers, but there is no efficient algorithm for computing an LCS between more than two strings. This paper proposes a method for computing efficiently the LCS between three or more strings of small alphabet size. Specifically, our algorithm computes the LCS of d(≥ 3) strings of length n on alphabet of size s in O(nsd+Dsd(logd− 3 n+logd− 2 s)) time, where D is the number of dominant matches and is much smaller than n d. Through computational experiments, we demonstrate the effectiveness of our algorithm.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Apostolico, A. and C. Guerra, The longest common subsequence problem revisited, Algorithmica, Vol. 2, 1987, pp. 315–336.

    MathSciNet  Google Scholar 

  2. Chin, F. Y. L. and C. K. Poon, A fast algorithm for computing longest common subsequences of small alphabet size, J. of Info. Proc., Vol. 13, No.4, 1990, pp. 463–469.

    Google Scholar 

  3. Hirschberg, D. S., A linear space algorithm for computing maximal common subsequences, Comm. ACM, Vol. 18, 1975, pp. 341–343.

    Article  Google Scholar 

  4. Hirschberg, D. S., Algorithms for the longest common subsequence problem, J. ACM, Vol. 24, 1977, pp. 664–675.

    Article  Google Scholar 

  5. Hunt, J. W. and T. G. A. Szymanski, A fast algorithm for computing longest common subsequences, Comm. ACM, Vol. 20, 1977, pp. 350–353.

    Article  Google Scholar 

  6. Kung, H. T., F. Luccio, and F. P. Preparata, On finding the maxima of a set of vectors, J. ACM, Vol. 22, No.4, 1975, pp. 469–476.

    Article  Google Scholar 

  7. Masek, W. J., and M. S. Paterson, A faster algorithm computing string edit distances, JCSS, 1980, pp.18–31.

    Google Scholar 

  8. Preparata, F. P., and M. Shamos, Computational Geometry, Springer-Verlag, 1985.

    Google Scholar 

  9. Wagner, R. A., and M. J. Fischer, The string-to-string correction problem, J. ACM, Vol. 21, No.1, 1974, pp. 168–173.

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Toshihide Ibaraki Yasuyoshi Inagaki Kazuo Iwama Takao Nishizeki Masafumi Yamashita

Rights and permissions

Reprints and permissions

Copyright information

© 1992 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Hakata, K., Imai, H. (1992). The longest common subsequence problem for small alphabet size between many strings. In: Ibaraki, T., Inagaki, Y., Iwama, K., Nishizeki, T., Yamashita, M. (eds) Algorithms and Computation. ISAAC 1992. Lecture Notes in Computer Science, vol 650. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-56279-6_99

Download citation

  • DOI: https://doi.org/10.1007/3-540-56279-6_99

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-56279-5

  • Online ISBN: 978-3-540-47501-9

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics