ACM Home Page
Please provide us with feedback. Feedback
A fast algorithm for computing longest common subsequences
Full text PdfPdf (391 KB)
Source
Communications of the ACM archive
Volume 20 ,  Issue 5  (May 1977) table of contents
Pages: 350 - 353  
Year of Publication: 1977
ISSN:0001-0782
Authors
James W. Hunt  Stanford Univ., Stanford, CA
Thomas G. Szymanski  Princeton Univ., Princeton, NJ
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 77,   Downloads (12 Months): 391,   Citation Count: 59
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/359581.359603
What is a DOI?

ABSTRACT

Previously published algorithms for finding the longest common subsequence of two sequences of length n have had a best-case running time of O(n2). An algorithm for this problem is presented which has a running time of O((r + n) log n), where r is the total number of ordered pairs of positions at which the two sequences match. Thus in the worst case the algorithm has a running time of O(n2 log n). However, for those applications where most positions of one sequence match relatively few positions in the other sequence, a running time of O(n log n) can be expected.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
 
2
van Emde Boas, P. Preserving order in a forest in less than logarithmic time. 16th Annual Symp. on Foundations Comptr. Sci., Oct. 1975, pp. 75-84.
 
3
Fredman, M.L. On computing the length of longest increasing subsequences. Discrete Mathematics 11, 1 (Jan. 1975), 29-35.
4
 
5
Szymansld, T.G. A special case of the maximal common subsequence problem. TR-170, Dep. Electrical Eng., Princeton U., Princeton, N.J., Jan. 1975.
6
 
7
Yao, A.C. and Yao, F.F. On computing the rank function for a set of vectors. UIUCDCS-R-75-699, Dep. Comptr. Sci., U. of Illinois at Urbana-Champaign, Urbana, Ill., Feb. 1975.

CITED BY  60

Collaborative Colleagues:
James W. Hunt: colleagues
Thomas G. Szymanski: colleagues