<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wcipeg.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Sequence</id>
		<title>Sequence - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wcipeg.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Sequence"/>
		<link rel="alternate" type="text/html" href="http://wcipeg.com/wiki/index.php?title=Sequence&amp;action=history"/>
		<updated>2026-04-26T16:15:26Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.25.2</generator>

	<entry>
		<id>http://wcipeg.com/wiki/index.php?title=Sequence&amp;diff=1370&amp;oldid=prev</id>
		<title>Brian at 18:20, 28 June 2011</title>
		<link rel="alternate" type="text/html" href="http://wcipeg.com/wiki/index.php?title=Sequence&amp;diff=1370&amp;oldid=prev"/>
				<updated>2011-06-28T18:20:20Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 18:20, 28 June 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L4&quot; &gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Precisely, we may wish to define a ''sequence'' as ''an ordered collection of objects from a set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;, not necessarily distinct, indexed by natural numbers beginning from one.'' We may also choose to represent a sequence as a function whose domain is either the subset of natural numbers &amp;lt;math&amp;gt;[1,2,...,N]&amp;lt;/math&amp;gt;, or the entire set &amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;. The restriction that the objects be indexed by natural numbers is somewhat artificial; the requirement is really that the elements can, informally be speaking, &amp;quot;lined up&amp;quot;, one after another, so that by starting somewhere and going to the next element and the next and so on, any element can eventually be reached. Thus, while sequences may be infinite, they may not be uncountably infinite, so there is no sequence that contains all the real numbers, because the real numbers are uncountable.&amp;#160; (Mathematically speaking, a sequence can be assigned an ordinal number from the set &amp;lt;math&amp;gt;\{0, 1, 2, ..., \omega\}&amp;lt;/math&amp;gt;.) For this reason we may just as well choose to index a sequence by integers starting from zero when it is convenient to do so. The requirement that the elements belong to the same set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; is somewhat artificial in mathematics, where we can just take &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; so that it contains all elements of our sequence anyway. But it is useful in statically typed programming languages to take &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; to be the set of all objects of a particular type, so that sequences can be uniformly processed using functions that expect or produce a certain type.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Precisely, we may wish to define a ''sequence'' as ''an ordered collection of objects from a set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;, not necessarily distinct, indexed by natural numbers beginning from one.'' We may also choose to represent a sequence as a function whose domain is either the subset of natural numbers &amp;lt;math&amp;gt;[1,2,...,N]&amp;lt;/math&amp;gt;, or the entire set &amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;. The restriction that the objects be indexed by natural numbers is somewhat artificial; the requirement is really that the elements can, informally be speaking, &amp;quot;lined up&amp;quot;, one after another, so that by starting somewhere and going to the next element and the next and so on, any element can eventually be reached. Thus, while sequences may be infinite, they may not be uncountably infinite, so there is no sequence that contains all the real numbers, because the real numbers are uncountable.&amp;#160; (Mathematically speaking, a sequence can be assigned an ordinal number from the set &amp;lt;math&amp;gt;\{0, 1, 2, ..., \omega\}&amp;lt;/math&amp;gt;.) For this reason we may just as well choose to index a sequence by integers starting from zero when it is convenient to do so. The requirement that the elements belong to the same set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; is somewhat artificial in mathematics, where we can just take &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; so that it contains all elements of our sequence anyway. But it is useful in statically typed programming languages to take &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; to be the set of all objects of a particular type, so that sequences can be uniformly processed using functions that expect or produce a certain type.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The set of sequences of length &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; over the set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; is denoted by &amp;lt;math&amp;gt;S^n&amp;lt;/math&amp;gt;. The set of infinite sequences taken from the set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; may be denoted as &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;either &lt;/del&gt;&amp;lt;math&amp;gt;S^{\infty}&amp;lt;/math&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;or &lt;/del&gt;&amp;lt;math&amp;gt;S^{\mathbb{N}}&amp;lt;/math&amp;gt;. We shall use the notation &amp;lt;math&amp;gt;S^*&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;S^0 \cup S^1 \cup S^2 \cup ... &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;\cup S^{\infty}&lt;/del&gt;&amp;lt;/math&amp;gt;, the set of all sequences over the set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;The set of sequences of length &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; over the set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; is denoted by &amp;lt;math&amp;gt;S^n&amp;lt;/math&amp;gt;. The set of infinite sequences taken from the set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; may be denoted as &amp;lt;math&amp;gt;S^{\infty}&amp;lt;/math&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, &lt;/ins&gt;&amp;lt;math&amp;gt;S^{\mathbb{N}&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;}&amp;lt;/math&amp;gt;, or &amp;lt;math&amp;gt;S^{\omega&lt;/ins&gt;}&amp;lt;/math&amp;gt;. We shall use the notation &amp;lt;math&amp;gt;S^*&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;S^0 \cup S^1 \cup S^2 \cup ...&amp;lt;/math&amp;gt;, the set of all &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;finite &lt;/ins&gt;sequences over the set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If the set from which the elements of a sequence are taken is finite, and the sequence itself is finite, the sequence is also a [[string]]. Sequences, however, can also be infinite and have infinitely many different values for their elements; an example is the Fibonacci sequence.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If the set from which the elements of a sequence are taken is finite, and the sequence itself is finite, the sequence is also a [[string]]. Sequences, however, can also be infinite and have infinitely many different values for their elements; an example is the Fibonacci sequence.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>http://wcipeg.com/wiki/index.php?title=Sequence&amp;diff=1083&amp;oldid=prev</id>
		<title>Brian at 19:58, 5 March 2011</title>
		<link rel="alternate" type="text/html" href="http://wcipeg.com/wiki/index.php?title=Sequence&amp;diff=1083&amp;oldid=prev"/>
				<updated>2011-03-05T19:58:17Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 19:58, 5 March 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L3&quot; &gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Definitions==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Definitions==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Precisely, we may wish to define a ''sequence'' as ''an ordered collection of objects from a set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;, not necessarily distinct, indexed by natural numbers beginning from one.'' We may also choose to represent a sequence as a function whose domain is either the subset of natural numbers &amp;lt;math&amp;gt;[1,2,...,N]&amp;lt;/math&amp;gt;, or the entire set &amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;. The restriction that the objects be indexed by natural numbers is somewhat artificial; the requirement is really that the elements can, informally be speaking, &amp;quot;lined up&amp;quot;, one after another, so that by starting somewhere and going to the next element and the next and so on, any element can eventually be reached. Thus, while sequences may be infinite, they may not be uncountably infinite, so there is no sequence that contains all the real numbers, because the real numbers are uncountable.&amp;#160; (Mathematically speaking, a sequence can be assigned an ordinal number from the set &amp;lt;math&amp;gt;\{0, 1, 2, ..., \omega\}&amp;lt;/math&amp;gt;.) For this reason we may just as well choose to index a sequence by integers starting from zero when it is convenient to do so. The requirement that the elements belong to the same set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; is somewhat artificial in mathematics, where we can just take &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; so that it contains all elements of our sequence anyway. But it is useful in statically typed programming languages to take &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; to be the set of all objects of a particular type, so that sequences can be uniformly processed using functions that expect or produce a certain type.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Precisely, we may wish to define a ''sequence'' as ''an ordered collection of objects from a set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;, not necessarily distinct, indexed by natural numbers beginning from one.'' We may also choose to represent a sequence as a function whose domain is either the subset of natural numbers &amp;lt;math&amp;gt;[1,2,...,N]&amp;lt;/math&amp;gt;, or the entire set &amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;. The restriction that the objects be indexed by natural numbers is somewhat artificial; the requirement is really that the elements can, informally be speaking, &amp;quot;lined up&amp;quot;, one after another, so that by starting somewhere and going to the next element and the next and so on, any element can eventually be reached. Thus, while sequences may be infinite, they may not be uncountably infinite, so there is no sequence that contains all the real numbers, because the real numbers are uncountable.&amp;#160; (Mathematically speaking, a sequence can be assigned an ordinal number from the set &amp;lt;math&amp;gt;\{0, 1, 2, ..., \omega\}&amp;lt;/math&amp;gt;.) For this reason we may just as well choose to index a sequence by integers starting from zero when it is convenient to do so. The requirement that the elements belong to the same set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; is somewhat artificial in mathematics, where we can just take &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; so that it contains all elements of our sequence anyway. But it is useful in statically typed programming languages to take &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; to be the set of all objects of a particular type, so that sequences can be uniformly processed using functions that expect or produce a certain type.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;The set of sequences of length &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; over the set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; is denoted by &amp;lt;math&amp;gt;S^n&amp;lt;/math&amp;gt;. The set of infinite sequences taken from the set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; may be denoted as either &amp;lt;math&amp;gt;S^{\infty}&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;S^{\mathbb{N}}&amp;lt;/math&amp;gt;. We shall use the notation &amp;lt;math&amp;gt;S^*&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;S^0 \cup S^1 \cup S^2 \cup ... \cup S^{\infty}&amp;lt;/math&amp;gt;, the set of all sequences over the set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If the set from which the elements of a sequence are taken is finite, and the sequence itself is finite, the sequence is also a [[string]]. Sequences, however, can also be infinite and have infinitely many different values for their elements; an example is the Fibonacci sequence.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If the set from which the elements of a sequence are taken is finite, and the sequence itself is finite, the sequence is also a [[string]]. Sequences, however, can also be infinite and have infinitely many different values for their elements; an example is the Fibonacci sequence.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>http://wcipeg.com/wiki/index.php?title=Sequence&amp;diff=553&amp;oldid=prev</id>
		<title>Brian at 05:33, 30 January 2011</title>
		<link rel="alternate" type="text/html" href="http://wcipeg.com/wiki/index.php?title=Sequence&amp;diff=553&amp;oldid=prev"/>
				<updated>2011-01-30T05:33:11Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 05:33, 30 January 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A '''sequence''', '''list''', or '''stream''' is a fundamental concept in mathematics and computer science. It is an entity that contains countably many other entities, ordered and regarded as a whole.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;A '''sequence''', '''list''', or '''stream''' is a fundamental concept in mathematics and computer science. It is an entity that contains &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;at most &lt;/ins&gt;countably many other entities, ordered and regarded as a whole.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Definitions==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Definitions==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L6&quot; &gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If the set from which the elements of a sequence are taken is finite, and the sequence itself is finite, the sequence is also a [[string]]. Sequences, however, can also be infinite and have infinitely many different values for their elements; an example is the Fibonacci sequence.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If the set from which the elements of a sequence are taken is finite, and the sequence itself is finite, the sequence is also a [[string]]. Sequences, however, can also be infinite and have infinitely many different values for their elements; an example is the Fibonacci sequence.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;While in theory, then, a sequence, list, or stream is merely countably many individual values regarded as a whole, the terms ''list'' and ''stream'' often carry the connotations that they do not support random access efficiently, or perhaps at all. Hence, in certain programming languages, a sequence allowing efficient random access is stored and referred to as an [[array]], a sequence supporting only sequential access is stored as a [[linked list]] but often simply referred to as a ''list'', and a sequence in which not all the elements might be available right away, such as the sequence of bytes representing standard input, typed on the terminal, is considered a ''stream''. (In a lazy language, such as Haskell, the distinction between the latter two is lost.) We shall assume that the data structure used to represent a sequence is the most appropriate one for the job whenever we discuss algorithms involving sequences.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;While in theory, then, a sequence, list, or stream is merely countably many individual values regarded as a whole, the terms ''list'' and ''stream'' often carry the connotations that they do not support random access efficiently, or perhaps at all. Hence, in certain programming languages, a sequence allowing efficient random access is stored and referred to as an [[array]], a sequence supporting only sequential access is stored as a [[linked list]] but often simply referred to as a ''list'', and a &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(possibly infinite) &lt;/ins&gt;sequence in which not all the elements might be available right away, such as the sequence of bytes representing standard input, typed on the terminal, is considered a ''stream''. (In a lazy language, such as Haskell, the distinction between the latter two is lost.) We shall assume that the data structure used to represent a sequence is the most appropriate one for the job whenever we discuss algorithms involving sequences.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;We shall usually write sequences as their terms in order, separated by commas, and enclosed by square brackets, ''e.g.'', &amp;lt;math&amp;gt;[x, y, z, ...]&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the first element, &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; is the second, and so on. The empty sequence is denoted &amp;lt;math&amp;gt;[\,]&amp;lt;/math&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;We shall usually write sequences as their terms in order, separated by commas, and enclosed by square brackets, ''e.g.'', &amp;lt;math&amp;gt;[x, y, z, ...]&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the first element, &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; is the second, and so on. The empty sequence is denoted &amp;lt;math&amp;gt;[\,]&amp;lt;/math&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A sequence over a totally ordered set is said to be '''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;nondecreasing&lt;/del&gt;''' if no element is less than the element preceding it (if any). If every element is greater than the element preceding it (unless no such element exists), then the sequence is said to be '''strictly increasing'''. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The &lt;/del&gt;term &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;'&lt;/del&gt;''increasing''' &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;could mean either &lt;/del&gt;''nondecreasing'' &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;or &lt;/del&gt;''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;strictly increasing&lt;/del&gt;'' &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;depending on context&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and should usually be avoided for &lt;/del&gt;the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;sake of clarity. The &lt;/del&gt;terms '''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;nonincreasing&lt;/del&gt;''' and '''strictly decreasing''' &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;are defined analogously&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;A sequence over a totally ordered set is said to be '''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;increasing&lt;/ins&gt;''' if no element is less than the element preceding it (if any). If every element is greater than the element preceding it (unless no such element exists), then the sequence is said to be '''strictly increasing'''. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Some authors argue that the &lt;/ins&gt;term ''increasing'' &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is misleading because sequences such as &amp;lt;math&amp;gt;[1,1,1,1,...]&amp;lt;/math&amp;gt; are considered increasing under this definition, and prefer &lt;/ins&gt;'''nondecreasing''' &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(because the sequence &lt;/ins&gt;''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;never&lt;/ins&gt;'&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;' decreases). However&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;all authors agree that &lt;/ins&gt;the terms '''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;decreasing&lt;/ins&gt;''' and '''strictly decreasing''' &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;have meanings opposite to ''increasing'' and ''strictly increasing'', respectively, which leads some authors to counter that the terminology ''nondecreasing'' is misleading because the suggested meaning is ''any sequence that is not decreasing'' (such as &amp;lt;math&amp;gt;[1,2,1,2,1,2]&amp;lt;/math&amp;gt;, which is neither an increasing nor a decreasing sequence). Because there is no consensus in usage the reader is advised to mind the context in which these terms appear&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The terms '''prefix''', '''suffix''', and '''concatenation''', while strictly applied to [[string]]s, may also be defined and used analogously for sequences, simply for lack of better terms. Note that any suffix of an infinite sequence is infinite. Also, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;concatenating two sequences &lt;/del&gt;is &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;meaningless &lt;/del&gt;if the first is &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;infinite&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;The terms '''prefix''', '''suffix''', and '''concatenation''', while strictly applied to [[string]]s, may also be defined and used analogously for sequences, simply for lack of better terms. Note that any suffix of an infinite sequence is infinite. Also, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;the concatenation of an infinite sequence with a nonempty second sequence &lt;/ins&gt;is &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;undefined, because &lt;/ins&gt;if &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;it were possible to perform this concatenation, then &lt;/ins&gt;the first &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;element of the second sequence would have no predecessor in the resulting sequence, which &lt;/ins&gt;is &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;not allowed. (Mathematically, ordinal numbers greater than &amp;lt;math&amp;gt;\omega&amp;lt;/math&amp;gt; are disallowed&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The term '''subsequence''' is not however defined analogously to ''substring''. A subsequence is a sequence obtained by removing some (possibly none, possibly all, possibly infinitely many) terms from a sequence without permuting the remaining terms. Formally, given a sequence &amp;lt;math&amp;gt;X = [x_1, x_2, x_3, ...]&amp;lt;/math&amp;gt;, to any strictly increasing sequence &amp;lt;math&amp;gt;[i_1, i_2, i_3, ...]&amp;lt;/math&amp;gt; of natural numbers not exceeding the size of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;, there corresponds a subsequence &amp;lt;math&amp;gt;[x_{i_1}, x_{i_2}, x_{i_3}, ...]&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;. A subsequence of an infinite sequence may be either finite or infinite.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The term '''subsequence''' is not however defined analogously to ''substring''. A subsequence is a sequence obtained by removing some (possibly none, possibly all, possibly infinitely many) terms from a sequence without permuting the remaining terms. Formally, given a sequence &amp;lt;math&amp;gt;X = [x_1, x_2, x_3, ...]&amp;lt;/math&amp;gt;, to any strictly increasing sequence &amp;lt;math&amp;gt;[i_1, i_2, i_3, ...]&amp;lt;/math&amp;gt; of natural numbers not exceeding the size of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;, there corresponds a subsequence &amp;lt;math&amp;gt;[x_{i_1}, x_{i_2}, x_{i_3}, ...]&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;. A subsequence of an infinite sequence may be either finite or infinite.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>http://wcipeg.com/wiki/index.php?title=Sequence&amp;diff=545&amp;oldid=prev</id>
		<title>Brian: /* Definitions */ - added spacing in []</title>
		<link rel="alternate" type="text/html" href="http://wcipeg.com/wiki/index.php?title=Sequence&amp;diff=545&amp;oldid=prev"/>
				<updated>2010-11-22T21:21:46Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Definitions: &lt;/span&gt; - added spacing in []&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 21:21, 22 November 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L8&quot; &gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;While in theory, then, a sequence, list, or stream is merely countably many individual values regarded as a whole, the terms ''list'' and ''stream'' often carry the connotations that they do not support random access efficiently, or perhaps at all. Hence, in certain programming languages, a sequence allowing efficient random access is stored and referred to as an [[array]], a sequence supporting only sequential access is stored as a [[linked list]] but often simply referred to as a ''list'', and a sequence in which not all the elements might be available right away, such as the sequence of bytes representing standard input, typed on the terminal, is considered a ''stream''. (In a lazy language, such as Haskell, the distinction between the latter two is lost.) We shall assume that the data structure used to represent a sequence is the most appropriate one for the job whenever we discuss algorithms involving sequences.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;While in theory, then, a sequence, list, or stream is merely countably many individual values regarded as a whole, the terms ''list'' and ''stream'' often carry the connotations that they do not support random access efficiently, or perhaps at all. Hence, in certain programming languages, a sequence allowing efficient random access is stored and referred to as an [[array]], a sequence supporting only sequential access is stored as a [[linked list]] but often simply referred to as a ''list'', and a sequence in which not all the elements might be available right away, such as the sequence of bytes representing standard input, typed on the terminal, is considered a ''stream''. (In a lazy language, such as Haskell, the distinction between the latter two is lost.) We shall assume that the data structure used to represent a sequence is the most appropriate one for the job whenever we discuss algorithms involving sequences.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;We shall usually write sequences as their terms in order, separated by commas, and enclosed by square brackets, ''e.g.'', &amp;lt;math&amp;gt;[x, y, z, ...]&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the first element, &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; is the second, and so on. The empty sequence is denoted &amp;lt;math&amp;gt;[]&amp;lt;/math&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;We shall usually write sequences as their terms in order, separated by commas, and enclosed by square brackets, ''e.g.'', &amp;lt;math&amp;gt;[x, y, z, ...]&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the first element, &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; is the second, and so on. The empty sequence is denoted &amp;lt;math&amp;gt;[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;\,&lt;/ins&gt;]&amp;lt;/math&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A sequence over a totally ordered set is said to be '''nondecreasing''' if no element is less than the element preceding it (if any). If every element is greater than the element preceding it (unless no such element exists), then the sequence is said to be '''strictly increasing'''. The term '''increasing''' could mean either ''nondecreasing'' or ''strictly increasing'' depending on context, and should usually be avoided for the sake of clarity. The terms '''nonincreasing''' and '''strictly decreasing''' are defined analogously.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A sequence over a totally ordered set is said to be '''nondecreasing''' if no element is less than the element preceding it (if any). If every element is greater than the element preceding it (unless no such element exists), then the sequence is said to be '''strictly increasing'''. The term '''increasing''' could mean either ''nondecreasing'' or ''strictly increasing'' depending on context, and should usually be avoided for the sake of clarity. The terms '''nonincreasing''' and '''strictly decreasing''' are defined analogously.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>http://wcipeg.com/wiki/index.php?title=Sequence&amp;diff=541&amp;oldid=prev</id>
		<title>Brian at 20:54, 17 November 2010</title>
		<link rel="alternate" type="text/html" href="http://wcipeg.com/wiki/index.php?title=Sequence&amp;diff=541&amp;oldid=prev"/>
				<updated>2010-11-17T20:54:25Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 20:54, 17 November 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A '''sequence''', '''list''', or '''stream''' is a fundamental concept in mathematics and computer science. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;For convenience&lt;/del&gt;, we &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;shall &lt;/del&gt;define &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;it &lt;/del&gt;as ''an ordered collection of objects from a set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;, not necessarily distinct, indexed by natural numbers beginning from one.'' We may also choose to represent a sequence as a function whose domain is either the subset of natural numbers &amp;lt;math&amp;gt;[1,2,...,N]&amp;lt;/math&amp;gt;, or the entire set &amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;. The restriction that the objects be indexed by natural numbers is somewhat artificial; the requirement is really that the elements can, informally be speaking, &amp;quot;lined up&amp;quot;, one after another, so that by starting somewhere and going to the next element and the next and so on, any element can eventually be reached. Thus, while sequences may be infinite, they may not be uncountably infinite, so there is no sequence that contains all the real numbers, because the real numbers are uncountable.&amp;#160; (Mathematically speaking, a sequence can be assigned an ordinal number from the set &amp;lt;math&amp;gt;\{0, 1, 2, ..., \omega\}&amp;lt;/math&amp;gt;.) For this reason we may just as well choose to index a sequence by integers starting from zero when it is convenient to do so. The requirement that the elements belong to the same set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; is somewhat artificial in mathematics, where we can just take &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; so that it contains all elements of our sequence anyway. But it is useful in statically typed programming languages to take &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; to be the set of all objects of a particular type, so that sequences can be uniformly processed using functions that expect or produce a certain type.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;A '''sequence''', '''list''', or '''stream''' is a fundamental concept in mathematics and computer science. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;It is an entity that contains countably many other entities, ordered and regarded as a whole.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt;==Definitions==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt;Precisely&lt;/ins&gt;, we &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;may wish to &lt;/ins&gt;define &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;a ''sequence'' &lt;/ins&gt;as ''an ordered collection of objects from a set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;, not necessarily distinct, indexed by natural numbers beginning from one.'' We may also choose to represent a sequence as a function whose domain is either the subset of natural numbers &amp;lt;math&amp;gt;[1,2,...,N]&amp;lt;/math&amp;gt;, or the entire set &amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;. The restriction that the objects be indexed by natural numbers is somewhat artificial; the requirement is really that the elements can, informally be speaking, &amp;quot;lined up&amp;quot;, one after another, so that by starting somewhere and going to the next element and the next and so on, any element can eventually be reached. Thus, while sequences may be infinite, they may not be uncountably infinite, so there is no sequence that contains all the real numbers, because the real numbers are uncountable.&amp;#160; (Mathematically speaking, a sequence can be assigned an ordinal number from the set &amp;lt;math&amp;gt;\{0, 1, 2, ..., \omega\}&amp;lt;/math&amp;gt;.) For this reason we may just as well choose to index a sequence by integers starting from zero when it is convenient to do so. The requirement that the elements belong to the same set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; is somewhat artificial in mathematics, where we can just take &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; so that it contains all elements of our sequence anyway. But it is useful in statically typed programming languages to take &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; to be the set of all objects of a particular type, so that sequences can be uniformly processed using functions that expect or produce a certain type&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt;If the set from which the elements of a sequence are taken is finite, and the sequence itself is finite, the sequence is also a [[string]]. Sequences, however, can also be infinite and have infinitely many different values for their elements; an example is the Fibonacci sequence.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt;While in theory, then, a sequence, list, or stream is merely countably many individual values regarded as a whole, the terms ''list'' and ''stream'' often carry the connotations that they do not support random access efficiently, or perhaps at all. Hence, in certain programming languages, a sequence allowing efficient random access is stored and referred to as an [[array]], a sequence supporting only sequential access is stored as a [[linked list]] but often simply referred to as a ''list'', and a sequence in which not all the elements might be available right away, such as the sequence of bytes representing standard input, typed on the terminal, is considered a ''stream''. (In a lazy language, such as Haskell, the distinction between the latter two is lost.) We shall assume that the data structure used to represent a sequence is the most appropriate one for the job whenever we discuss algorithms involving sequences.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt;We shall usually write sequences as their terms in order, separated by commas, and enclosed by square brackets, ''e.g.'', &amp;lt;math&amp;gt;[x, y, z, ...]&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the first element, &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; is the second, and so on. The empty sequence is denoted &amp;lt;math&amp;gt;[]&amp;lt;/math&amp;gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt;A sequence over a totally ordered set is said to be '''nondecreasing''' if no element is less than the element preceding it (if any). If every element is greater than the element preceding it (unless no such element exists), then the sequence is said to be '''strictly increasing'''. The term '''increasing''' could mean either ''nondecreasing'' or ''strictly increasing'' depending on context, and should usually be avoided for the sake of clarity. The terms '''nonincreasing''' and '''strictly decreasing''' are defined analogously.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt;The terms '''prefix''', '''suffix''', and '''concatenation''', while strictly applied to [[string]]s, may also be defined and used analogously for sequences, simply for lack of better terms. Note that any suffix of an infinite sequence is infinite. Also, concatenating two sequences is meaningless if the first is infinite.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt;The term '''subsequence''' is not however defined analogously to ''substring''. A subsequence is a sequence obtained by removing some (possibly none, possibly all, possibly infinitely many) terms from a sequence without permuting the remaining terms. Formally, given a sequence &amp;lt;math&amp;gt;X = [x_1, x_2, x_3, ...]&amp;lt;/math&amp;gt;, to any strictly increasing sequence &amp;lt;math&amp;gt;[i_1, i_2, i_3, ...]&amp;lt;/math&amp;gt; of natural numbers not exceeding the size of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;, there corresponds a subsequence &amp;lt;math&amp;gt;[x_{i_1}, x_{i_2}, x_{i_3}, ...]&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;. A subsequence of an infinite sequence may be either finite or infinite&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>http://wcipeg.com/wiki/index.php?title=Sequence&amp;diff=537&amp;oldid=prev</id>
		<title>Brian: Created page with &quot;A '''sequence''', '''list''', or '''stream''' is a fundamental concept in mathematics and computer science. For convenience, we shall define it as ''an ordered collection of obje...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wcipeg.com/wiki/index.php?title=Sequence&amp;diff=537&amp;oldid=prev"/>
				<updated>2010-11-17T07:04:51Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;A &amp;#039;&amp;#039;&amp;#039;sequence&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;list&amp;#039;&amp;#039;&amp;#039;, or &amp;#039;&amp;#039;&amp;#039;stream&amp;#039;&amp;#039;&amp;#039; is a fundamental concept in mathematics and computer science. For convenience, we shall define it as &amp;#039;&amp;#039;an ordered collection of obje...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A '''sequence''', '''list''', or '''stream''' is a fundamental concept in mathematics and computer science. For convenience, we shall define it as ''an ordered collection of objects from a set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;, not necessarily distinct, indexed by natural numbers beginning from one.'' We may also choose to represent a sequence as a function whose domain is either the subset of natural numbers &amp;lt;math&amp;gt;[1,2,...,N]&amp;lt;/math&amp;gt;, or the entire set &amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;. The restriction that the objects be indexed by natural numbers is somewhat artificial; the requirement is really that the elements can, informally be speaking, &amp;quot;lined up&amp;quot;, one after another, so that by starting somewhere and going to the next element and the next and so on, any element can eventually be reached. Thus, while sequences may be infinite, they may not be uncountably infinite, so there is no sequence that contains all the real numbers, because the real numbers are uncountable.  (Mathematically speaking, a sequence can be assigned an ordinal number from the set &amp;lt;math&amp;gt;\{0, 1, 2, ..., \omega\}&amp;lt;/math&amp;gt;.) For this reason we may just as well choose to index a sequence by integers starting from zero when it is convenient to do so. The requirement that the elements belong to the same set &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; is somewhat artificial in mathematics, where we can just take &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; so that it contains all elements of our sequence anyway. But it is useful in statically typed programming languages to take &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; to be the set of all objects of a particular type, so that sequences can be uniformly processed using functions that expect or produce a certain type.&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	</feed>