<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mathresearch.utsa.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=Subsequences</id>
	<title>Subsequences - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mathresearch.utsa.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=Subsequences"/>
	<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Subsequences&amp;action=history"/>
	<updated>2026-04-15T08:20:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Subsequences&amp;diff=4078&amp;oldid=prev</id>
		<title>Khanh at 04:37, 22 November 2021</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Subsequences&amp;diff=4078&amp;oldid=prev"/>
		<updated>2021-11-22T04:37:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 04:37, 22 November 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l46&quot; &gt;Line 46:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Every infinite bounded sequence in &amp;lt;math&amp;gt;\R^n&amp;lt;/math&amp;gt; has a convergent subsequence (This is the Bolzano–Weierstrass theorem).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Every infinite bounded sequence in &amp;lt;math&amp;gt;\R^n&amp;lt;/math&amp;gt; has a convergent subsequence (This is the Bolzano–Weierstrass theorem).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* For all integers &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;s,&amp;lt;/math&amp;gt; every finite sequence of length at least &amp;lt;math&amp;gt;(r - 1)(s - 1) + 1&amp;lt;/math&amp;gt; contains a monotonically increasing subsequence of length&amp;amp;nbsp;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt; ''or'' a monotonically decreasing subsequence of length&amp;amp;nbsp;&amp;lt;math&amp;gt;s&amp;lt;/math&amp;gt; (This is the Erdős–Szekeres theorem).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* For all integers &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;s,&amp;lt;/math&amp;gt; every finite sequence of length at least &amp;lt;math&amp;gt;(r - 1)(s - 1) + 1&amp;lt;/math&amp;gt; contains a monotonically increasing subsequence of length&amp;amp;nbsp;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt; ''or'' a monotonically decreasing subsequence of length&amp;amp;nbsp;&amp;lt;math&amp;gt;s&amp;lt;/math&amp;gt; (This is the Erdős–Szekeres theorem).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Licensing == &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Content obtained and/or adapted from:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [https://en.wikipedia.org/wiki/Subsequence Subsequence, Wikipedia] under a CC BY-SA license&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Khanh</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Subsequences&amp;diff=4077&amp;oldid=prev</id>
		<title>Khanh: Created page with &quot; 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 o...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Subsequences&amp;diff=4077&amp;oldid=prev"/>
		<updated>2021-11-22T04:32:37Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; In mathematics, a &amp;#039;&amp;#039;&amp;#039;subsequence&amp;#039;&amp;#039;&amp;#039; 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 o...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
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 &amp;lt;math&amp;gt;\langle A,B,D \rangle&amp;lt;/math&amp;gt; is a subsequence of &amp;lt;math&amp;gt;\langle A,B,C,D,E,F \rangle&amp;lt;/math&amp;gt; obtained after removal of elements &amp;lt;math&amp;gt;C,&amp;lt;/math&amp;gt; &amp;lt;math&amp;gt;E,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;F.&amp;lt;/math&amp;gt; The relation of one sequence being the subsequence of another is a preorder.&lt;br /&gt;
&lt;br /&gt;
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 &amp;lt;math&amp;gt;\langle B,C,D \rangle,&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;\langle A,B,C,D,E,F \rangle,&amp;lt;/math&amp;gt; is a substring. The substring is a refinement of the subsequence.&lt;br /&gt;
&lt;br /&gt;
The list of all subsequences for the word &amp;quot;'''apple'''&amp;quot; would be &amp;quot;''a''&amp;quot;, &amp;quot;''ap''&amp;quot;, &amp;quot;''al''&amp;quot;, &amp;quot;''ae''&amp;quot;, &amp;quot;''app''&amp;quot;, &amp;quot;''apl''&amp;quot;, &amp;quot;''ape''&amp;quot;, &amp;quot;''ale''&amp;quot;, &amp;quot;''appl''&amp;quot;, &amp;quot;''appe''&amp;quot;, &amp;quot;''aple''&amp;quot;, &amp;quot;''apple''&amp;quot;, &amp;quot;''p''&amp;quot;, &amp;quot;''pp''&amp;quot;, &amp;quot;''pl''&amp;quot;, &amp;quot;''pe''&amp;quot;, &amp;quot;''ppl''&amp;quot;, &amp;quot;''ppe''&amp;quot;, &amp;quot;''ple''&amp;quot;, &amp;quot;''pple''&amp;quot;, &amp;quot;''l''&amp;quot;, &amp;quot;''le''&amp;quot;, &amp;quot;''e''&amp;quot;, &amp;quot;&amp;quot; (empty string).&lt;br /&gt;
&lt;br /&gt;
== Common subsequence ==&lt;br /&gt;
&lt;br /&gt;
Given two sequences &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y,&amp;lt;/math&amp;gt; a sequence &amp;lt;math&amp;gt;Z&amp;lt;/math&amp;gt; is said to be a ''common subsequence'' of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y,&amp;lt;/math&amp;gt; if &amp;lt;math&amp;gt;Z&amp;lt;/math&amp;gt; is a subsequence of both &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y.&amp;lt;/math&amp;gt;  For example, if&lt;br /&gt;
&amp;lt;math display=block&amp;gt;X = \langle A,C,B,D,E,G,C,E,D,B,G \rangle \qquad \text{ and}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;math display=block&amp;gt;Y = \langle B,E,G,J,C,F,E,K,B \rangle \qquad \text{ and}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;math display=block&amp;gt;Z = \langle B,E,E \rangle.&amp;lt;/math&amp;gt;&lt;br /&gt;
then &amp;lt;math&amp;gt;Z&amp;lt;/math&amp;gt; is said to be a common subsequence of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This would ''not'' be the ''longest common subsequence'', since &amp;lt;math&amp;gt;Z&amp;lt;/math&amp;gt; only has length 3, and the common subsequence &amp;lt;math&amp;gt;\langle B,E,E,B \rangle&amp;lt;/math&amp;gt; has length&amp;amp;nbsp;4. The longest common subsequence of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;\langle B,E,G,C,E,B \rangle.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Applications ==&lt;br /&gt;
&lt;br /&gt;
Subsequences have applications to computer science, especially in the discipline of bioinformatics, where computers are used to compare, analyze, and store DNA, RNA, and protein sequences.&lt;br /&gt;
&lt;br /&gt;
Take two sequences of DNA containing 37 elements, say:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;tt&amp;gt;SEQ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = ACGGTGTCGTGCTATGCTGATGCTGACTTATATGCTA&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;SEQ&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = CGTTCGGCTATCGTACGTTCTATTCTATGATTTCTAA&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The longest common subsequence of sequences 1 and 2 is:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;tt&amp;gt;LCS&amp;lt;sub&amp;gt;(SEQ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;,SEQ&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&amp;lt;/sub&amp;gt; = '''CGTTCGGCTATGCTTCTACTTATTCTA'''&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This can be illustrated by highlighting the 27 elements of the longest common subsequence into the initial sequences:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;tt&amp;gt;SEQ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = A&amp;lt;span style=&amp;quot;color:#FF3399&amp;quot;&amp;gt;CG&amp;lt;/span&amp;gt;G&amp;lt;span style=&amp;quot;color:#FF3399&amp;quot;&amp;gt;T&amp;lt;/span&amp;gt;G&amp;lt;span style=&amp;quot;color:#FF3399&amp;quot;&amp;gt;TCG&amp;lt;/span&amp;gt;T&amp;lt;span style=&amp;quot;color:#FF3399&amp;quot;&amp;gt;GCTATGCT&amp;lt;/span&amp;gt;GA&amp;lt;span style=&amp;quot;color:#FF3399&amp;quot;&amp;gt;T&amp;lt;/span&amp;gt;G&amp;lt;span style=&amp;quot;color:#FF3399&amp;quot;&amp;gt;CT&amp;lt;/span&amp;gt;G&amp;lt;span style=&amp;quot;color:#FF3399&amp;quot;&amp;gt;ACTTAT&amp;lt;/span&amp;gt;A&amp;lt;span style=&amp;quot;color:#FF3399&amp;quot;&amp;gt;T&amp;lt;/span&amp;gt;G&amp;lt;span style=&amp;quot;color:#FF3399&amp;quot;&amp;gt;CTA&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;SEQ&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = &amp;lt;span style=&amp;quot;color:#FF3399&amp;quot;&amp;gt;CGTTCGGCTAT&amp;lt;/span&amp;gt;C&amp;lt;span style=&amp;quot;color:#FF3399&amp;quot;&amp;gt;G&amp;lt;/span&amp;gt;TA&amp;lt;span style=&amp;quot;color:#FF3399&amp;quot;&amp;gt;C&amp;lt;/span&amp;gt;G&amp;lt;span style=&amp;quot;color:#FF3399&amp;quot;&amp;gt;TTCTA&amp;lt;/span&amp;gt;TT&amp;lt;span style=&amp;quot;color:#FF3399&amp;quot;&amp;gt;CT&amp;lt;/span&amp;gt;A&amp;lt;span style=&amp;quot;color:#FF3399&amp;quot;&amp;gt;T&amp;lt;/span&amp;gt;G&amp;lt;span style=&amp;quot;color:#FF3399&amp;quot;&amp;gt;ATT&amp;lt;/span&amp;gt;T&amp;lt;span style=&amp;quot;color:#FF3399&amp;quot;&amp;gt;CTA&amp;lt;/span&amp;gt;A &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
:&amp;lt;tt&amp;gt;SEQ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = ACGGTGTCGTGCTAT-G--C-TGATGCTGA--CT-T-ATATG-CTA-&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;|&amp;amp;nbsp;||&amp;amp;nbsp;|||&amp;amp;nbsp;|||||&amp;amp;nbsp;|&amp;amp;nbsp;&amp;amp;nbsp;|&amp;amp;nbsp;|&amp;amp;nbsp;&amp;amp;nbsp;|&amp;amp;nbsp;||&amp;amp;nbsp;|&amp;amp;nbsp;&amp;amp;nbsp;||&amp;amp;nbsp;|&amp;amp;nbsp;||&amp;amp;nbsp;|&amp;amp;nbsp;&amp;amp;nbsp;||| &amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;SEQ&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = -C-GT-TCG-GCTATCGTACGT--T-CT-ATTCTATGAT-T-TCTAA&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Subsequences are used to determine how similar the two strands of DNA are, using the DNA bases: adenine, guanine, cytosine and thymine.&lt;br /&gt;
&lt;br /&gt;
== Theorems ==&lt;br /&gt;
&lt;br /&gt;
* Every infinite sequence of real numbers has an infinite monotone subsequence (This is a lemma used in the proof of the Bolzano–Weierstrass theorem).&lt;br /&gt;
* Every infinite bounded sequence in &amp;lt;math&amp;gt;\R^n&amp;lt;/math&amp;gt; has a convergent subsequence (This is the Bolzano–Weierstrass theorem).&lt;br /&gt;
* For all integers &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;s,&amp;lt;/math&amp;gt; every finite sequence of length at least &amp;lt;math&amp;gt;(r - 1)(s - 1) + 1&amp;lt;/math&amp;gt; contains a monotonically increasing subsequence of length&amp;amp;nbsp;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt; ''or'' a monotonically decreasing subsequence of length&amp;amp;nbsp;&amp;lt;math&amp;gt;s&amp;lt;/math&amp;gt; (This is the Erdős–Szekeres theorem).&lt;/div&gt;</summary>
		<author><name>Khanh</name></author>
		
	</entry>
</feed>