Abstract
Many efficient algorithms have been developed to compute the length of a longest common subsequence (LCS) between two strings. In general, an LCS is not unique but current methods only recover a single LCS. We investigate the problem of finding all longest common subsequences. A simple extension of the reconstruction method used by existing algorithms would seriously harm their time complexities. We present observations on a symmetry of the LCS problem which allow us to develop a general method to obtain a representation of all longest common subsequences while preserving the favorable time bounds of known algorithms.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
A. Apostolico and C. Guerra. The longest common subsequence problem revisited. Algorithmica, 2:315–336, 1987.
R. A. Baeza-Yates. Searching subsequences. Theoretical Computer Science, 78(2):363–376, January 1991.
L. Bergroth, H. Hakonen, and T. Raita. A survey of longest common subsequence algorithms (extended abstract). Technical report, Dept. of Computer Science, University of Turku, Finland, April 2000. manuscript.
N. Blum. Speeding up dynamic programming without omitting any optimal solution and some applications in molecular biology. Journal of Algorithms, to appear, 2000.
E. Breimer, M. Goldberg, and D. Lim. A learning algorithm for the longest common subsequence problem. In Proceedings of the 2nd Algorithm Engineering and Experiments, pages 147–156, San Francisco, CA, 2000.
Francis Y. L. Chin and C. K. Poon. A fast algorithm for computing longest common subsequences of small alphabet size. Journal of Information Processing., 13(4):463–469, 1990.
David Eppstein, Zvi Galil, Raffaele Giancarlo, and Giuseppe F. Italiano. Sparse dynamic programming I: Linear cost functions. Journal of the ACM, 39(3):519–545, July 1992.
D. S. Hirschberg. A linear space algorithm for computing maximal common subsequences. Communications of the ACM, 18(6):341–343, June 1975.
D. S. Hirschberg. Algorithms for the longest common subsequence problem. Jrnl. A.C.M., 24(4):664–675, 1977.
D. S. Hirschberg. Serial computations of Levenshtein distances. In A Postolico and Z. Galil, editors, Pattern matching algorithms, chapter 4, pages 123–141. Oxford University Press, 1997.
W. J Hsu and M. W. Du. New algorithms for the LCS problem. Journal of Computer and System Sciences, 29:133–152, 1984.
James W. Hunt and Thomas G. Szymanski. A fast algorithm for computing longest common subsequences. Communications of the ACM, 20(5):350–353, May 1977.
N. Nakatsu, Y. Kambayashi, and S. Yajima. A longest common subsequence algorithm suitable for similar text strings. Acta Informatica, 18:171–179, 1982.
Claus Rick. A new flexible algorithm for the longest common subsequence problem. Nordic Journal of Computing, 2(4):444–461, Winter 1995.
Claus Rick. A new flexible algorithm for the longest common subsequence problem. In Zvi Galil and Esko Ukkonen, editors, Combinatorial Pattern Matching, 6th Annual Symposium, volume 937 of Lecture Notes in Computer Science, pages 340–351, Espoo, Finland, 5–7 July 1995. Springer.
Claus Rick. Simple and fast linear space computation of longest common subsequences, submitted for publication, 2000.
Robert A. Wagner and Michael J. Fischer. The string-to-string correction problem. Journal of the ACM, 21(1):168–173, January 1974.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2000 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Rick, C. (2000). Efficient Computation of All Longest Common Subsequences. In: Algorithm Theory - SWAT 2000. SWAT 2000. Lecture Notes in Computer Science, vol 1851. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-44985-X_35
Download citation
DOI: https://doi.org/10.1007/3-540-44985-X_35
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-67690-4
Online ISBN: 978-3-540-44985-0
eBook Packages: Springer Book Archive