Subsequence
In mathematics, a subsequence of a given sequence is a sequence that can be derived from the given sequence by deleting some or no 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 obtained after removal of elements C, E, and F. The relation of one sequence being the subsequence of another is a partial order. Subsequences can contain consecutive elements which were not consecutive in the original sequence. A subsequence which consists of a consecutive run of elements from the original sequence, such as \langle B,C,D \rangle, from \langle A,B,C,D,E,F \rangle, is a substring. The substring is a refinement of the subsequence. The list of all subsequences for the word "apple" would be "a", "ap", "al", "ae", "app", "apl", "ape", "ale", "appl", "appe", "aple", "apple", "p", "pp", "pl", "pe", "ppl", "ppe", "ple", "pple", "l", "le", "e", "" (empty string).
In mathematics, a subsequence of a given sequence is a sequence that can be derived from the given sequence by deleting some or no 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 obtained after removal of elements C, E, and F. The relation of one sequence being the subsequence of another is a partial order. Subsequences can contain consecutive elements which were not consecutive in the original sequence. A subsequence which consists of a consecutive run of elements from the original sequence, such as \langle B,C,D \rangle, from \langle A,B,C,D,E,F \rangle, is a substring. The substring is a refinement of the subsequence. The list of all subsequences for the word "apple" would be "a", "ap", "al", "ae", "app", "apl", "ape", "ale", "appl", "appe", "aple", "apple", "p", "pp", "pl", "pe", "ppl", "ppe", "ple", "pple", "l", "le", "e", "" (empty string). X = \langle A,C,B,D,E,G,C,E,D,B,G \rangle \qquad \text{ and} Y = \langle B,E,G,J,C,F,E,K,B \rangle \qquad \text{ and} Z = \langle B,E,E \rangle. then Z is said to be a common subsequence of X and Y. This would be the longest common subsequence, since Z 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. SEQ 1 = ACGGTGTCGTGCTATGCTGATGCTGACTTATATGCTA SEQ 2 = CGTTCGGCTATCGTACGTTCTATTCTATGATTTCTAA The longest common subsequence of sequences 1 and 2 is: LCS (SEQ 1 ,SEQ 2 ) = CGTTCGGCTATGCTTCTACTTATTCTA This can be illustrated by highlighting the 27 elements of the longest common subsequence into the initial sequences: SEQ 1 = A G G T GA G G A G SEQ 2 = C TA G TT A G T A Another way to show this is to align the two sequences, that is, to position elements of the longest common subsequence in a same column (indicated by the vertical bar) and to introduce a special character (here, a dash) for padding of arisen empty subsequences: SEQ 1 = ACGGTGTCGTGCTAT-G--C-TGATGCTGA--CT-T-ATATG-CTA- | || ||| ||||| | | | | || | || | || | ||| SEQ 2 = -C-GT-TCG-GCTATCGTACGT--T-CT-ATTCTATGAT-T-TCTAA Subsequences are used to determine how similar the two strands of DNA are, using the DNA bases: adenine, guanine, cytosine and thymine.
References
No reference rows published for this article.
Cite this article
MLA
"Subsequence." encyclopegia.org, 2026, https://encyclopegia.org/wiki/subsequence. Accessed 23 November 2026.
Chicago
"Subsequence." encyclopegia.org. Accessed November 23, 2026. https://encyclopegia.org/wiki/subsequence.
APA
encyclopegia.org. (2026). Subsequence. Retrieved November 23, 2026, from https://encyclopegia.org/wiki/subsequence
Accessed November 23, 2026 · CC BY-SA 4.0 · citation page · JSON