Longest common subsequence: Difference between revisions

m
Restored recent References edit.
m (Specified the (<>) relation over matches.)
m (Restored recent References edit.)
Line 2:
Define a subsequence to be any string obtained by deleting zero or more symbols from an input string.
 
The '''Longest Common Subsequence''' (or [http://en.wikipedia.org/wiki/Longest_common_subsequence_problem '''LCSLongest Common Subsequence''']) or '''LCS''' is a subsequence of maximum length common to two (or more) strings.
 
Let A = A[0]… A[m-1] and B = B[0]… B[n-1], m <= n be strings drawn from an alphabet '''Σ''' of size s, containing every distinct symbol in A + B.
Line 38:
'''References'''
 
# "A linear space algorithm for computing maximal common subsequences" by Daniel S. Hirschberg, published June 1975<br />Communications of the ACM [Volume 18, Number 6, pp. 341–343]
# "An Algorithm for Differential File Comparison" by James W. Hunt and M. Douglas McIlroy, June 1976<br />Computing Science Technical Report, Bell Laboratories 41
Communications of the ACM [Volume 18, Number 6, pp. 341–343]
# "A Fast Algorithm for Computing Longest Common Subsequences" by James W. Hunt and Thomas G. Szymanski, published May 1977<br />Communications of the ACM [Volume 20, Number 5, pp. 350-353]
 
# "Simple and fast linear space computation of longest common subsequences" by Claus Rick, received 17 March 2000, Information Processing Letters,<br />Elsevier Science [Volume 75, pp. 275–281]
"An Algorithm for Differential File Comparison" by James W. Hunt and M. Douglas McIlroy, June 1976<br />
<br />
Computing Science Technical Report, Bell Laboratories 41
 
"A Fast Algorithm for Computing Longest Common Subsequences" by James W. Hunt and Thomas G. Szymanski, published May 1977<br />
Communications of the ACM [Volume 20, Number 5, pp. 350-353]
 
"Simple and fast linear space computation of longest common subsequences" by Claus Rick, received 17 March 2000, Information Processing Letters,<br />
Elsevier Science [Volume 75, pp. 275–281]
 
'''Examples'''
 
159

edits