|
Finds the longest common subsequence in two lists (or two strings).
For example: Both b, a, c and a, b, c are subsequences of the list a, c, b, d, a, c.
And the longest common subsequence of a, c, d, b, a, c and p, c, d, b, d, c is c, d, b, c
This code is based on the description in "Algorithms on Strings, Trees, and Sequences: Computer Science and Computational Biology" by Dan Gusfield.
|
|