<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://charlesreid1.com/w/index.php?action=history&amp;feed=atom&amp;title=FMM22</id>
	<title>FMM22 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://charlesreid1.com/w/index.php?action=history&amp;feed=atom&amp;title=FMM22"/>
	<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=FMM22&amp;action=history"/>
	<updated>2026-06-25T05:35:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.12</generator>
	<entry>
		<id>https://charlesreid1.com/w/index.php?title=FMM22&amp;diff=30840&amp;oldid=prev</id>
		<title>Admin: Replaced em dashes with regular dashes (via update-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=FMM22&amp;diff=30840&amp;oldid=prev"/>
		<updated>2026-06-24T17:42:44Z</updated>

		<summary type="html">&lt;p&gt;Replaced em dashes with regular dashes (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:42, 24 June 2026&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-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=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;|problem=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;|problem=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;An alchemist encounters a stream of vials produced one by one from a magical spring. He may carry exactly one vial home, and once he passes on a vial, it is gone forever. He has no idea how many vials the spring will produce in total &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;— &lt;/del&gt;the stream could stop at any moment.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;An alchemist encounters a stream of vials produced one by one from a magical spring. He may carry exactly one vial home, and once he passes on a vial, it is gone forever. He has no idea how many vials the spring will produce in total &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;- &lt;/ins&gt;the stream could stop at any moment.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;What strategy should the alchemist follow so that, no matter how many vials appear, &amp;#039;&amp;#039;&amp;#039;every vial has an equal probability of being the one he carries home&amp;#039;&amp;#039;&amp;#039;?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;What strategy should the alchemist follow so that, no matter how many vials appear, &amp;#039;&amp;#039;&amp;#039;every vial has an equal probability of being the one he carries home&amp;#039;&amp;#039;&amp;#039;?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;(Source: Donald Knuth, &amp;#039;&amp;#039;The Art of Computer Programming, Volume 2: Seminumerical Algorithms&amp;#039;&amp;#039; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;— &lt;/del&gt;Algorithm R, Reservoir Sampling)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;(Source: Donald Knuth, &amp;#039;&amp;#039;The Art of Computer Programming, Volume 2: Seminumerical Algorithms&amp;#039;&amp;#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;- &lt;/ins&gt;Algorithm R, Reservoir Sampling)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;|solution=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;|solution=&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;mw-diff-left-l42&quot;&gt;Line 42:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 42:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;Since this holds for every &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;, all &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; vials have an equal probability &amp;lt;math&amp;gt;\tfrac{1}{N}&amp;lt;/math&amp;gt; of being selected &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;— &lt;/del&gt;regardless of the unknown total &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;Since this holds for every &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;, all &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; vials have an equal probability &amp;lt;math&amp;gt;\tfrac{1}{N}&amp;lt;/math&amp;gt; of being selected &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;- &lt;/ins&gt;regardless of the unknown total &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;=== Why this is remarkable ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;=== Why this is remarkable ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff::1.12:old-30839:rev-30840 --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://charlesreid1.com/w/index.php?title=FMM22&amp;diff=30839&amp;oldid=prev</id>
		<title>Admin: Created FMM22: The Cautious Alchemist&#039;s Vial (Reservoir Sampling / Algorithm R) (via create-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=FMM22&amp;diff=30839&amp;oldid=prev"/>
		<updated>2026-06-24T17:38:37Z</updated>

		<summary type="html">&lt;p&gt;Created FMM22: The Cautious Alchemist&amp;#039;s Vial (Reservoir Sampling / Algorithm R) (via create-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{FMM&lt;br /&gt;
|title=The Cautious Alchemist&amp;#039;s Vial&lt;br /&gt;
|problem=&lt;br /&gt;
&lt;br /&gt;
An alchemist encounters a stream of vials produced one by one from a magical spring. He may carry exactly one vial home, and once he passes on a vial, it is gone forever. He has no idea how many vials the spring will produce in total — the stream could stop at any moment.&lt;br /&gt;
&lt;br /&gt;
What strategy should the alchemist follow so that, no matter how many vials appear, &amp;#039;&amp;#039;&amp;#039;every vial has an equal probability of being the one he carries home&amp;#039;&amp;#039;&amp;#039;?&lt;br /&gt;
&lt;br /&gt;
(Source: Donald Knuth, &amp;#039;&amp;#039;The Art of Computer Programming, Volume 2: Seminumerical Algorithms&amp;#039;&amp;#039; — Algorithm R, Reservoir Sampling)&lt;br /&gt;
&lt;br /&gt;
|solution=&lt;br /&gt;
&lt;br /&gt;
Let the total number of vials be &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; (unknown to the alchemist ahead of time). Label the vials &amp;lt;math&amp;gt;1, 2, \dots, N&amp;lt;/math&amp;gt; in the order they appear.&lt;br /&gt;
&lt;br /&gt;
=== Strategy (Algorithm R for &amp;lt;math&amp;gt;K=1&amp;lt;/math&amp;gt;) ===&lt;br /&gt;
&lt;br /&gt;
When the &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;-th vial appears, the alchemist keeps it with probability &amp;lt;math&amp;gt;\tfrac{1}{k}&amp;lt;/math&amp;gt;, discarding whatever vial he was holding previously. Otherwise (with probability &amp;lt;math&amp;gt;1 - \tfrac{1}{k}&amp;lt;/math&amp;gt;), he ignores it and keeps whatever he is already holding.&lt;br /&gt;
&lt;br /&gt;
=== Proof that every vial is equally likely ===&lt;br /&gt;
&lt;br /&gt;
We claim that each vial &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; (where &amp;lt;math&amp;gt;1 \leq k \leq N&amp;lt;/math&amp;gt;) ends up as the final chosen vial with probability exactly &amp;lt;math&amp;gt;\tfrac{1}{N}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For vial &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; to be the final choice, two things must happen:&lt;br /&gt;
&lt;br /&gt;
# The alchemist must &amp;#039;&amp;#039;&amp;#039;keep&amp;#039;&amp;#039;&amp;#039; vial &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; when it appears, which happens with probability &amp;lt;math&amp;gt;\tfrac{1}{k}&amp;lt;/math&amp;gt;.&lt;br /&gt;
# He must &amp;#039;&amp;#039;&amp;#039;not keep&amp;#039;&amp;#039;&amp;#039; any subsequent vial &amp;lt;math&amp;gt;k+1, k+2, \dots, N&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The probability of &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; keeping vial &amp;lt;math&amp;gt;k+1&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;1 - \tfrac{1}{k+1} = \tfrac{k}{k+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The probability of not keeping vial &amp;lt;math&amp;gt;k+2&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;\tfrac{k+1}{k+2}&amp;lt;/math&amp;gt;, and so on.&lt;br /&gt;
&lt;br /&gt;
Thus, the probability that vial &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; is the final choice is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
P(k) = \frac{1}{k} \cdot \frac{k}{k+1} \cdot \frac{k+1}{k+2} \cdot \dots \cdot \frac{N-1}{N}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Every numerator cancels with the denominator of the following fraction (a telescoping product), leaving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
P(k) = \frac{1}{N}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since this holds for every &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;, all &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; vials have an equal probability &amp;lt;math&amp;gt;\tfrac{1}{N}&amp;lt;/math&amp;gt; of being selected — regardless of the unknown total &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Why this is remarkable ===&lt;br /&gt;
&lt;br /&gt;
The alchemist achieves a perfectly uniform random sample from a stream of &amp;#039;&amp;#039;&amp;#039;unknown length&amp;#039;&amp;#039;&amp;#039; using only &amp;lt;math&amp;gt;O(1)&amp;lt;/math&amp;gt; memory (a single vial slot). This is the &amp;lt;math&amp;gt;K=1&amp;lt;/math&amp;gt; case of &amp;#039;&amp;#039;&amp;#039;Reservoir Sampling&amp;#039;&amp;#039;&amp;#039;, which generalizes to selecting &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; items uniformly from a stream of unknown size.&lt;br /&gt;
&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>