Longest Common Subsequence Problem

Longest Common Subsequence Problem

The longest common subsequence (LCS) problem is to find the longest subsequence common to all sequences in a set of sequences (often just two). Note that subsequence is different from a substring, see substring vs. subsequence. It is a classic computer science problem, the basis of file comparison programs such as diff, and has applications in bioinformatics.

Read more about Longest Common Subsequence Problem:  Complexity, Solution For Two Sequences, Relation To Other Problems, Code Optimization

Famous quotes containing the words longest, common and/or problem:

    Freud is all nonsense; the secret of neurosis is to be found in the family battle of wills to see who can refuse longest to help with the dishes. The sink is the great symbol of the bloodiness of family life.
    Julian Mitchell (20th century)

    When we consider what, to use the words of the catechism, is the chief end of man, and what are the true necessaries and means of life, it appears as if men had deliberately chosen the common mode of living because they preferred it to any other. Yet they honestly think there is no choice left. But alert and healthy natures remember that the sun rose clear. It is never too late to give up our prejudices.
    Henry David Thoreau (1817–1862)

    Give a scientist a problem and he will probably provide a solution; historians and sociologists, by contrast, can offer only opinions. Ask a dozen chemists the composition of an organic compound such as methane, and within a short time all twelve will have come up with the same solution of CH4. Ask, however, a dozen economists or sociologists to provide policies to reduce unemployment or the level of crime and twelve widely differing opinions are likely to be offered.
    Derek Gjertsen, British scientist, author. Science and Philosophy: Past and Present, ch. 3, Penguin (1989)