<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: The Infection Puzzle</title>
	<atom:link href="http://20bits.com/articles/the-infection-puzzle/feed/" rel="self" type="application/rss+xml" />
	<link>http://20bits.com/articles/the-infection-puzzle/</link>
	<description>Driven by Data</description>
	<lastBuildDate>Wed, 28 Jul 2010 21:50:46 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Abby</title>
		<link>http://20bits.com/articles/the-infection-puzzle/comment-page-1/#comment-4618</link>
		<dc:creator>Abby</dc:creator>
		<pubDate>Mon, 07 Sep 2009 11:31:03 +0000</pubDate>
		<guid isPermaLink="false">http://20bits.com/2007/05/05/the-infection-puzzle/#comment-4618</guid>
		<description>Perhaps you could elaborate a little about each slide: either as a voice or as some text. Not all are conversant with all the &#039;fractals&#039; associated with it. Wish to see more plain version of these next time, thanks.&lt;br&gt;&lt;a rel=&quot;follow&quot; href=&quot;http://www.sanatatesexuala.ro/produse.php?categorie=3.ejaculare%20precoce&quot; rel=&quot;nofollow&quot;&gt;ejaculare&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Perhaps you could elaborate a little about each slide: either as a voice or as some text. Not all are conversant with all the &#39;fractals&#39; associated with it. Wish to see more plain version of these next time, thanks.<br /><a rel="follow" href="http://www.sanatatesexuala.ro/produse.php?categorie=3.ejaculare%20precoce" rel="nofollow">ejaculare</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Health_Campus</title>
		<link>http://20bits.com/articles/the-infection-puzzle/comment-page-1/#comment-4606</link>
		<dc:creator>Health_Campus</dc:creator>
		<pubDate>Sun, 30 Aug 2009 07:10:05 +0000</pubDate>
		<guid isPermaLink="false">http://20bits.com/2007/05/05/the-infection-puzzle/#comment-4606</guid>
		<description>wow i really found this to be interesting. thanks for sharing&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://healthcampus.net&quot; rel=&quot;nofollow&quot;&gt;Cheers&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>wow i really found this to be interesting. thanks for sharing</p>
<p><a href="http://healthcampus.net" rel="nofollow">Cheers</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse</title>
		<link>http://20bits.com/articles/the-infection-puzzle/comment-page-1/#comment-463</link>
		<dc:creator>Jesse</dc:creator>
		<pubDate>Thu, 19 Jul 2007 17:52:21 +0000</pubDate>
		<guid isPermaLink="false">http://20bits.com/2007/05/05/the-infection-puzzle/#comment-463</guid>
		<description>Patrick,

I finally approved your comment.  And yep, that&#039;s what the Hungarian mathematician who first told me this puzzle would call the &quot;Ah-haa!&quot; solution.  The perimeter never decreases as the infection spreads so to infect an NxN board you need at least N initially infected squares.</description>
		<content:encoded><![CDATA[<p>Patrick,</p>
<p>I finally approved your comment.  And yep, that&#8217;s what the Hungarian mathematician who first told me this puzzle would call the &#8220;Ah-haa!&#8221; solution.  The perimeter never decreases as the infection spreads so to infect an NxN board you need at least N initially infected squares.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Koppula</title>
		<link>http://20bits.com/articles/the-infection-puzzle/comment-page-1/#comment-386</link>
		<dc:creator>Patrick Koppula</dc:creator>
		<pubDate>Tue, 10 Jul 2007 21:08:39 +0000</pubDate>
		<guid isPermaLink="false">http://20bits.com/2007/05/05/the-infection-puzzle/#comment-386</guid>
		<description>Isn&#039;t growth from the initial configuration limited by the perimeter of the initially infected &quot;shape&quot; since you need two sides of a square to infect another square? In fact, isn&#039;t the final infection at most a rectangle with the perimeter of the original shape since each infection spends two sides to create  a newly infected square which has at most two unobstructed sides to contribute to new infections? So, since the entire board has a perimeter of 32, the initial infection must also and the only way to get this is with 8 &quot;un-adjacent&quot; squares.

On a personal note: I found this puzzle because one of my co-founders saw http://appaholic.com/ and your interest in my previous company, iLike, and said &quot;we&#039;ve got to bring this guy in for an interview&quot;. Check out http://vadver.com/jobs.php and let me know when you can come in to learn more about our plans.</description>
		<content:encoded><![CDATA[<p>Isn&#8217;t growth from the initial configuration limited by the perimeter of the initially infected &#8220;shape&#8221; since you need two sides of a square to infect another square? In fact, isn&#8217;t the final infection at most a rectangle with the perimeter of the original shape since each infection spends two sides to create  a newly infected square which has at most two unobstructed sides to contribute to new infections? So, since the entire board has a perimeter of 32, the initial infection must also and the only way to get this is with 8 &#8220;un-adjacent&#8221; squares.</p>
<p>On a personal note: I found this puzzle because one of my co-founders saw <a href="http://appaholic.com/" rel="nofollow">http://appaholic.com/</a> and your interest in my previous company, iLike, and said &#8220;we&#8217;ve got to bring this guy in for an interview&#8221;. Check out <a href="http://vadver.com/jobs.php" rel="nofollow">http://vadver.com/jobs.php</a> and let me know when you can come in to learn more about our plans.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://20bits.com/articles/the-infection-puzzle/comment-page-1/#comment-318</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 15 Jun 2007 04:13:08 +0000</pubDate>
		<guid isPermaLink="false">http://20bits.com/2007/05/05/the-infection-puzzle/#comment-318</guid>
		<description>I just read your article on dynamic programming so my mind is very much recursively focused atm. (I haven&#039;t seen this problem before).

To illustrate the line of thinking I want to use:
Assume we can fill an m-by-m grid with k cells initially coloured in. Then we can fill an (m+1)-by-(m+1) grid with k+1 cells by adding a row to the bottom and column to the right side of our m-by-m grid and colouring the bottom right cell. (We colour the first k cells as in our m-by-m set up). Clearly the first k cells will still do their thing and fill the m-by-m square in the top left corner. Then, or before then, the bottom right cell will cause the bottom row and right-most column to fill.

Since we can fill a 1-by-1 square with 1 cell initially it follows inductively that we can fill an n-by-n with n cells filled initially.

~~

To prove a lower bound along this line of reasoning we need to show that if you can&#039;t fill an m-by-m with k cells then you can&#039;t fill an (m+1)-by-(m+1) with k+1 cells. If we can&#039;t fill it with k+1 cells then clearly we can&#039;t fill it with less then k+1 either.

If we can show this then the result follows fairly simply via induction: we can&#039;t fill a 1-by-1 grid with 0 cells coloured initially.

We know that the infection can&#039;t spread further right/left/up/down then the right/left/up/down-most square initially coloured in. To see this for the down-most case:

Assume we have some down-most cell A (and no ties for this title) which isn&#039;t in the bottom row. Since we can&#039;t generate coloured squares diagonally, if a coloured square gets generated further down then A it must be generated directly below A. But the way generation works means there needs to be another square touching the square directly below A. Necessarily this other square must be further down then A - our downmost square - contradiction. Hence we can&#039;t generate a square lower then A.

It follows then that in any completely filled grid there were initially coloured cells in the bottom and top rows and in the left and right edge columns. Note this can be achieved with two cells by placing them in diagonally opposite corners.

Out of time unfortunately, perhaps I&#039;ll get back to this later.</description>
		<content:encoded><![CDATA[<p>I just read your article on dynamic programming so my mind is very much recursively focused atm. (I haven&#8217;t seen this problem before).</p>
<p>To illustrate the line of thinking I want to use:<br />
Assume we can fill an m-by-m grid with k cells initially coloured in. Then we can fill an (m+1)-by-(m+1) grid with k+1 cells by adding a row to the bottom and column to the right side of our m-by-m grid and colouring the bottom right cell. (We colour the first k cells as in our m-by-m set up). Clearly the first k cells will still do their thing and fill the m-by-m square in the top left corner. Then, or before then, the bottom right cell will cause the bottom row and right-most column to fill.</p>
<p>Since we can fill a 1-by-1 square with 1 cell initially it follows inductively that we can fill an n-by-n with n cells filled initially.</p>
<p>~~</p>
<p>To prove a lower bound along this line of reasoning we need to show that if you can&#8217;t fill an m-by-m with k cells then you can&#8217;t fill an (m+1)-by-(m+1) with k+1 cells. If we can&#8217;t fill it with k+1 cells then clearly we can&#8217;t fill it with less then k+1 either.</p>
<p>If we can show this then the result follows fairly simply via induction: we can&#8217;t fill a 1-by-1 grid with 0 cells coloured initially.</p>
<p>We know that the infection can&#8217;t spread further right/left/up/down then the right/left/up/down-most square initially coloured in. To see this for the down-most case:</p>
<p>Assume we have some down-most cell A (and no ties for this title) which isn&#8217;t in the bottom row. Since we can&#8217;t generate coloured squares diagonally, if a coloured square gets generated further down then A it must be generated directly below A. But the way generation works means there needs to be another square touching the square directly below A. Necessarily this other square must be further down then A &#8211; our downmost square &#8211; contradiction. Hence we can&#8217;t generate a square lower then A.</p>
<p>It follows then that in any completely filled grid there were initially coloured cells in the bottom and top rows and in the left and right edge columns. Note this can be achieved with two cells by placing them in diagonally opposite corners.</p>
<p>Out of time unfortunately, perhaps I&#8217;ll get back to this later.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: E</title>
		<link>http://20bits.com/articles/the-infection-puzzle/comment-page-1/#comment-142</link>
		<dc:creator>E</dc:creator>
		<pubDate>Sat, 05 May 2007 18:56:52 +0000</pubDate>
		<guid isPermaLink="false">http://20bits.com/2007/05/05/the-infection-puzzle/#comment-142</guid>
		<description>Actually, on second thought, that&#039;s a flawed proof, because a BWB leads to BBB, which might put a mark in a new column. Oh well, I&#039;m not interested enough to give it more thought =/</description>
		<content:encoded><![CDATA[<p>Actually, on second thought, that&#8217;s a flawed proof, because a BWB leads to BBB, which might put a mark in a new column. Oh well, I&#8217;m not interested enough to give it more thought =/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: E</title>
		<link>http://20bits.com/articles/the-infection-puzzle/comment-page-1/#comment-141</link>
		<dc:creator>E</dc:creator>
		<pubDate>Sat, 05 May 2007 18:51:58 +0000</pubDate>
		<guid isPermaLink="false">http://20bits.com/2007/05/05/the-infection-puzzle/#comment-141</guid>
		<description>*Spoilers warning*

I&#039;ve never seen this before, and I agree with Eimantas. Obviously we have an upper bound of n by marking everything on a diagonal. But it&#039;s not particularly hard to prove that it&#039;s the lower bound. In order for a square to turn black, it must already be in a row or column that another black one is in. And it takes n squares to put a mark in every row and column. So the lower bound is n.

-E</description>
		<content:encoded><![CDATA[<p>*Spoilers warning*</p>
<p>I&#8217;ve never seen this before, and I agree with Eimantas. Obviously we have an upper bound of n by marking everything on a diagonal. But it&#8217;s not particularly hard to prove that it&#8217;s the lower bound. In order for a square to turn black, it must already be in a row or column that another black one is in. And it takes n squares to put a mark in every row and column. So the lower bound is n.</p>
<p>-E</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse</title>
		<link>http://20bits.com/articles/the-infection-puzzle/comment-page-1/#comment-140</link>
		<dc:creator>Jesse</dc:creator>
		<pubDate>Sat, 05 May 2007 16:10:20 +0000</pubDate>
		<guid isPermaLink="false">http://20bits.com/2007/05/05/the-infection-puzzle/#comment-140</guid>
		<description>Can you prove it?  And have you seen this puzzle before?</description>
		<content:encoded><![CDATA[<p>Can you prove it?  And have you seen this puzzle before?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eimantas</title>
		<link>http://20bits.com/articles/the-infection-puzzle/comment-page-1/#comment-138</link>
		<dc:creator>Eimantas</dc:creator>
		<pubDate>Sat, 05 May 2007 07:04:27 +0000</pubDate>
		<guid isPermaLink="false">http://20bits.com/2007/05/05/the-infection-puzzle/#comment-138</guid>
		<description>Though i don&#039;t know much about combinatorics and probability, mine minimum of infected squares was exactly n.</description>
		<content:encoded><![CDATA[<p>Though i don&#8217;t know much about combinatorics and probability, mine minimum of infected squares was exactly n.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
