Subsequence

Algebra ->  Algebra  -> Sequences-and-series -> Subsequence      Log On

Ad: Algebrator™ solves your algebra problems and provides step-by-step explanations!
Ad: Algebra Solved!™: algebra software solves algebra homework problems with step-by-step help!

   

Subsequence

/div>
Jump to: navigation, search

In mathematics, a subsequence is a sequence that can be derived from another sequence by deleting some elements without changing the order of the remaining elements. For example, the sequence  \langle A,B,D \rangle is a subsequence of  \langle A,B,C,D,E,F \rangle .

Given two sequences X and Y, a sequence G is said to be a common subsequence of X and Y, if G is a subsequence of both X and Y. For example, if

 X = \langle A,C,B,D,E,G,C,E,D,B,G \rangle and
 Y = \langle B,E,G,C,F,E,U,B,K \rangle

then a common subsequence of X and Y could be

 G = \langle B,E,E \rangle.

This would not be the longest common subsequence, since G only has length 3, and the common subsequence  \langle B,E,E,B \rangle has length 4. The longest common subsequence of X and Y is  \langle B,E,G,C,E,B \rangle .

Contents

[ Applications

Subsequences have applications to computer science, especially in the discipline of Bioinformatics, where computers are used to compare, analyze, and store DNA strands.

Take two strands of DNA, say:

ORG1 = ACGGTGTCGTGCTATGCTGATGCTGACTTATATGCTA
and
ORG2 = CGTTCGGCTATCGTACGTTCTATTCTATGATTTCTAA.

Subsequences are used to determine how similar the two strands of DNA are, using the DNA bases: adenine, guanine, cytosine and thymine.

[ Substring vs. subsequence

In computer science, string is often used as a synonym for sequence, but it is important to note that substring and subsequence are not synonyms. Substrings are consecutive parts of a string, while subsequences need not be. This means that a substring of a string is always a subsequence of the string, but a subsequence of a string is not always a substring of the string.[1]

[ See also

[ References

  1. ^ Gusfield, Dan (1999) [1997]. Algorithms on Strings, Trees and Sequences: Computer Science and Computational Biology. USA: Cambridge University Press. pp. 4. ISBN 0-521-58519-8. 

This article incorporates material from subsequence on PlanetMath, which is licensed under the Creative Commons Attribution/Share-Alike License.

Personal tools
Namespaces
Variants
Source: this wikipedia article, under CC-BY-SA.

Tutors Answer Your Questions about Sequences-and-series (FREE)


Older solutions: 1..45, 46..90, 91..135, 136..180, 181..225, 226..270, 271..315, 316..360, 361..405, 406..450, 451..495, 496..540, 541..585, 586..630, 631..675, 676..720, 721..765, 766..810, 811..855, 856..900, 901..945, 946..990, 991..1035, 1036..1080, 1081..1125, 1126..1170, 1171..1215, 1216..1260, 1261..1305, 1306..1350, 1351..1395, 1396..1440, 1441..1485, 1486..1530, 1531..1575, 1576..1620, 1621..1665, 1666..1710, 1711..1755, 1756..1800, 1801..1845, 1846..1890, 1891..1935, 1936..1980, 1981..2025, 2026..2070, 2071..2115, 2116..2160, 2161..2205, 2206..2250, 2251..2295, 2296..2340, 2341..2385, 2386..2430, 2431..2475, 2476..2520, 2521..2565, 2566..2610, 2611..2655, 2656..2700, 2701..2745