<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Possibly Wrong</title>
	<atom:link href="https://possiblywrong.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://possiblywrong.wordpress.com</link>
	<description>On science, mathematics, and computing</description>
	<lastBuildDate>Wed, 25 Jan 2012 00:31:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='possiblywrong.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>https://s-ssl.wordpress.com/i/buttonw-com.png</url>
		<title>Possibly Wrong</title>
		<link>https://possiblywrong.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="https://possiblywrong.wordpress.com/osd.xml" title="Possibly Wrong" />
	<atom:link rel='hub' href='https://possiblywrong.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Using a Watch as a Compass</title>
		<link>https://possiblywrong.wordpress.com/2012/01/25/using-a-watch-as-a-compass/</link>
		<comments>https://possiblywrong.wordpress.com/2012/01/25/using-a-watch-as-a-compass/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 00:31:55 +0000</pubDate>
		<dc:creator>possiblywrong</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://possiblywrong.wordpress.com/?p=817</guid>
		<description><![CDATA[Direction-finding using only the sun and an analog watch is a trick that I remember first reading about when I was in elementary school.  I think it was in one of Seymour Simon&#8217;s Einstein Anderson &#8220;science detective&#8221; stories, but I&#8217;m &#8230; <a href="https://possiblywrong.wordpress.com/2012/01/25/using-a-watch-as-a-compass/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=possiblywrong.wordpress.com&amp;blog=13213908&amp;post=817&amp;subd=possiblywrong&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Direction-finding using only the sun and an analog watch is a trick that I remember first reading about when I was in elementary school.  I think it was in one of Seymour Simon&#8217;s Einstein Anderson &#8220;science detective&#8221; stories, but I&#8217;m not sure; being a kid was a long time ago.</p>
<p>More recently, I saw it mentioned again in a shark movie that I happened to sit through, <em><a href="http://www.imdb.com/title/tt1320291/">The Reef</a></em>.  In the movie, a sailboat runs aground and capsizes in shallow water; rather than stay with the boat, the people on board try to swim north toward a distant island.  It doesn&#8217;t go well.</p>
<p>Before leaving the boat, one guy looks at his watch, looks at the sun, mumbles a few calculations, then says, &#8220;That&#8217;s north,&#8221; and off they go.  I wondered if those calculations were correct, particularly since the movie was set in Australia&#8211; the Southern Hemisphere&#8211; and the method didn&#8217;t sound quite like I remembered it.  After some additional searching on the web, along with some experiments and calculations of my own, I learned that descriptions of this &#8220;Boy Scout&#8221; survival trick are frequently incorrect, incomplete, or misleading.  But more interestingly, such descriptions are almost never accompanied by a warning of just how <em>inaccurate</em> the method can be, even when it is used properly.  My suggestion: keep your GPS-equipped smart phone with you at all times.</p>
<p><strong>How it works:</strong> <em>If you are north of the <a href="http://en.wikipedia.org/wiki/Tropics">tropics</a></em>, hold your watch face horizontal, and turn so that the hour hand points toward the sun.  Then the ray bisecting the angle between the hour hand and 12 o&#8217;clock <em>noon</em> points approximately true south.  (I will deal with the Southern Hemisphere later.)  See the figure below for an example.</p>
<div id="attachment_819" class="wp-caption alignnone" style="width: 410px"><a href="http://possiblywrong.files.wordpress.com/2012/01/compass.png"><img class="size-full wp-image-819" title="compass" src="http://possiblywrong.files.wordpress.com/2012/01/compass.png?w=640" alt=""   /></a><p class="wp-caption-text">Example of using a watch as a compass (Northern Hemisphere, 10:30 am).</p></div>
<p>The first potential source of confusion is which direction is north and which is south: do you bisect the &#8220;small&#8221; angle or the &#8220;large&#8221; angle between the hour hand and 12 o&#8217;clock?  Some sources suggest that &#8220;north will be the direction further from the sun&#8221;&#8211; that is, bisecting the <em>smaller</em> angle points south.  Although this is usually the case, it can fail when the sun is up before 6:00 am or after 6:00 pm.  It seems simpler to just remember that south bisects the angle that sweeps in time from the hour hand toward noon (clockwise in the morning, counter-clockwise in the afternoon).</p>
<p><strong>How <em>well</em> it works:</strong> This is what I found most interesting about this problem.  One <a href="http://modernsurvivalblog.com/survival-skills/how-to-use-a-watch-as-a-compass/">survivalist blog</a> (a somewhat amusing phenomenon, if you think about it) makes the strangely precise and grossly false claim that &#8220;the accuracy of this method is within 8 degrees (US and Canada).&#8221;  In fact, the error in the estimate of direction quite often exceeds 30 degrees, and can even exceed 80 degrees depending on where&#8211; and when&#8211; you are.</p>
<p>There are two primary sources of error.  The most obvious source of error is the accuracy of your watch.  Several online sites state that &#8220;the direction will be correct if the watch is set for true local time, without adjustments for <a href="http://en.wikipedia.org/wiki/Daylight_saving_time">Daylight Savings Time</a> [<em>sic</em>].&#8221;  More precisely, the method is more accurate if your watch reads 12 o&#8217;clock when the sun is at its highest point in the sky, due directly south.</p>
<p>The problem is that &#8220;standard time&#8221; and &#8220;<a href="http://en.wikipedia.org/wiki/Solar_time#Apparent_solar_time">apparent solar time</a>&#8221; rarely coincide exactly.  Everyone in a particular time zone thinks it is the same time, despite the fact that those on the eastern edge of a time zone will see the sun rise approximately one hour earlier than those on the western edge.  To make matters worse, the time zones in the U.S. are rather erratically shaped, resulting in even larger differences than would be the case if time zone boundaries were simple, straight lines of longitude, 15 degrees apart:</p>
<div id="attachment_820" class="wp-caption alignnone" style="width: 610px"><a href="http://possiblywrong.files.wordpress.com/2012/01/timezones.png"><img class="size-full wp-image-820" title="timezones" src="http://possiblywrong.files.wordpress.com/2012/01/timezones.png?w=640" alt=""   /></a><p class="wp-caption-text">The time zones in the contiguous 48 states.</p></div>
<p>The second source of error is the latitude of your position: as several online sites suggest, &#8220;the further you are from the equator, the more accurate this method will be.&#8221;  This is essentially true, and is by far the larger of the two sources of error.  What is often left out, however, is that the method isn&#8217;t simply less accurate near the equator, it effectively doesn&#8217;t work &#8220;at all.&#8221;  In the tropics&#8211; the band around the earth between about 23.5 degrees south and 23.5 degrees north&#8211; not only is the sun higher in the sky, making it more difficult to accurately estimate its direction in the first place, the sun&#8217;s motion is also not as well-behaved (why?), so that the error in your estimate of direction can approach 180 degrees, even assuming an accurate estimate of the sun&#8217;s direction.</p>
<p>So how well does it work?  As approximately &#8220;best case&#8221; behavior, following is a plot showing the error in estimated direction over the course of the year 2012, at the Northwest Angle Inlet in Lake of the Woods, Minnesota (the <a href="http://en.wikipedia.org/wiki/Extreme_points_of_the_United_States#Northernmost">northernmost point in the contiguous 48 states</a>).</p>
<div id="attachment_821" class="wp-caption alignnone" style="width: 610px"><a href="http://possiblywrong.files.wordpress.com/2012/01/lakeofthewoods.png"><img class="size-full wp-image-821" title="lakeofthewoods" src="http://possiblywrong.files.wordpress.com/2012/01/lakeofthewoods.png?w=640" alt=""   /></a><p class="wp-caption-text">Compass error in Lake of the Woods, MN, for the year 2012.</p></div>
<p>The general shape of this plot is typical; the method works best in the fall and winter months, with the worst case behavior in the middle of the year.  Even this far north, errors can exceed 30 degrees.</p>
<p>At the other extreme, the following plot is for the Florida Keys, which suffer from being just north of the Tropic of Cancer, where errors are the worst.  However, the method still works reasonably well during the &#8220;cold&#8221; months.</p>
<div id="attachment_822" class="wp-caption alignnone" style="width: 610px"><a href="http://possiblywrong.files.wordpress.com/2012/01/floridakeys.png"><img class="size-full wp-image-822" title="floridakeys" src="http://possiblywrong.files.wordpress.com/2012/01/floridakeys.png?w=640" alt=""   /></a><p class="wp-caption-text">Compass error in the Florida Keys for the year 2012.</p></div>
<p>Finally, back to the Southern Hemisphere.  Here, the method is only slightly different: if you are south of the tropics, then point <em>12 o&#8217;clock</em> at the sun, and <em>north</em> bisects the angle between the hour hand and 12 o&#8217;clock noon (with the same &#8220;sweeping in time&#8221; sense described above).  I found several different incorrect variations on this online; perhaps the most disappointing was an otherwise very cool interactive <em>Mathematica</em> demonstration on the <a href="http://demonstrations.wolfram.com/WristwatchAsACompass/">Wolfram web site</a>.</p>
<p>And the method used in the Australian shark movie?  The description of the method turned out to be correct&#8230; but the action takes place at approximately 10 degrees south latitude, where all bets are off.  At any rate, it wasn&#8217;t enough to escape a great white shark.</p>
<p>References:</p>
<ol>
<li>Meeus, Jean, Astronomical Algorithms (2nd Ed.). Richmond: Willmann-Bell, Inc., 2009.</li>
<li>Muller, Eric, Shapefile of the Time Zones of The United States. [<a href="http://efele.net/maps/tz/us/">link</a>]</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/possiblywrong.wordpress.com/817/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/possiblywrong.wordpress.com/817/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/possiblywrong.wordpress.com/817/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/possiblywrong.wordpress.com/817/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/possiblywrong.wordpress.com/817/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/possiblywrong.wordpress.com/817/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/possiblywrong.wordpress.com/817/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/possiblywrong.wordpress.com/817/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/possiblywrong.wordpress.com/817/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/possiblywrong.wordpress.com/817/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/possiblywrong.wordpress.com/817/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/possiblywrong.wordpress.com/817/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/possiblywrong.wordpress.com/817/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/possiblywrong.wordpress.com/817/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=possiblywrong.wordpress.com&amp;blog=13213908&amp;post=817&amp;subd=possiblywrong&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://possiblywrong.wordpress.com/2012/01/25/using-a-watch-as-a-compass/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/2b4d14aad4321acfc145fdd711235a77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">possiblywrong</media:title>
		</media:content>

		<media:content url="http://possiblywrong.files.wordpress.com/2012/01/compass.png" medium="image">
			<media:title type="html">compass</media:title>
		</media:content>

		<media:content url="http://possiblywrong.files.wordpress.com/2012/01/timezones.png" medium="image">
			<media:title type="html">timezones</media:title>
		</media:content>

		<media:content url="http://possiblywrong.files.wordpress.com/2012/01/lakeofthewoods.png" medium="image">
			<media:title type="html">lakeofthewoods</media:title>
		</media:content>

		<media:content url="http://possiblywrong.files.wordpress.com/2012/01/floridakeys.png" medium="image">
			<media:title type="html">floridakeys</media:title>
		</media:content>
	</item>
		<item>
		<title>Light Bulb Puzzle Solution</title>
		<link>https://possiblywrong.wordpress.com/2012/01/08/light-bulb-puzzle-solution/</link>
		<comments>https://possiblywrong.wordpress.com/2012/01/08/light-bulb-puzzle-solution/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 21:16:09 +0000</pubDate>
		<dc:creator>possiblywrong</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://possiblywrong.wordpress.com/?p=780</guid>
		<description><![CDATA[Last week&#8217;s post presented several variants of the following general problem: you have a number of light bulbs, and you need to determine the highest floor in a building from which a bulb may be dropped without breaking.  All light bulbs &#8230; <a href="https://possiblywrong.wordpress.com/2012/01/08/light-bulb-puzzle-solution/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=possiblywrong.wordpress.com&amp;blog=13213908&amp;post=780&amp;subd=possiblywrong&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Last week&#8217;s <a href="http://possiblywrong.wordpress.com/2012/01/02/dropping-light-bulbs-or-eggs-an-interview-puzzle-twist/">post</a> presented several variants of the following general problem: you have a number of light bulbs, and you need to determine the highest floor in a building from which a bulb may be dropped without breaking.  All light bulbs are identical in that they all have the following properties:</p>
<ol>
<li>If a light bulb is dropped from a given floor and breaks, then any other light bulb will also break if dropped from that or any higher floor.</li>
<li>If a light bulb is dropped from a given floor and does <em>not</em> break, then neither it nor any other light bulb will break if subsequently dropped from that or any <em>lower</em> floor.</li>
<li>A light bulb may be dropped any number of times until it breaks, after which it is unusable and cannot be dropped again.</li>
</ol>
<p>A “drop” consists of taking a single light bulb in the elevator up to a particular floor, dropping the light bulb from that floor, taking the elevator back down, and checking whether the dropped light bulb broke.</p>
<p>If the building has <img src='https://s-ssl.wordpress.com/latex.php?latex=f%3D100&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f=100' title='f=100' class='latex' /> floors, and you have <img src='https://s-ssl.wordpress.com/latex.php?latex=b&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b' title='b' class='latex' /> light bulbs at your disposal, what is the least number of drops <img src='https://s-ssl.wordpress.com/latex.php?latex=d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d' title='d' class='latex' /> required to guarantee that after at most <img src='https://s-ssl.wordpress.com/latex.php?latex=d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d' title='d' class='latex' /> drops you can determine the highest floor from which a light bulb may be dropped without breaking?</p>
<p>Each variant of the problem from last week simply changed the value of <img src='https://s-ssl.wordpress.com/latex.php?latex=b&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b' title='b' class='latex' />, the number of available light bulbs.  The basic idea is most clearly illustrated with the simplest case of <img src='https://s-ssl.wordpress.com/latex.php?latex=b%3D1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b=1' title='b=1' class='latex' />; with just a single light bulb, we can do no better than dropping from floor 1, then floor 2, 3, 4, etc., until the bulb finally breaks, requiring <img src='https://s-ssl.wordpress.com/latex.php?latex=d%3Df%3D100&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d=f=100' title='d=f=100' class='latex' /> drops in the worst case.</p>
<p>At the other extreme, suppose that we have &#8220;plenty&#8221; of light bulbs that we can afford to break (i.e., <img src='https://s-ssl.wordpress.com/latex.php?latex=b+%5Cgeq+f&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b &#92;geq f' title='b &#92;geq f' class='latex' />).  In this case, intuition correctly suggests that a <a href="http://en.wikipedia.org/wiki/Binary_search_algorithm">binary search</a> is the right approach: for a 100-floor building, start by dropping a light bulb from floor 50.  If it breaks, then drop a second bulb from floor 25, otherwise drop the second bulb from floor 75, reducing the number of &#8220;candidate&#8221; floors by approximately half with each drop.  The maximum number of drops required is <img src='https://s-ssl.wordpress.com/latex.php?latex=d%3D%5Clceil%5Clog_2%28f%2B1%29%5Crceil&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d=&#92;lceil&#92;log_2(f+1)&#92;rceil' title='d=&#92;lceil&#92;log_2(f+1)&#92;rceil' class='latex' />, or 7 drops in the case of the original interview question from last week:</p>
<blockquote><p><strong>Problem 1:</strong> “Given 20 ‘destructible’ light bulbs (which breaks at certain height), and a building with 100 floors, how do you determine the height that the light bulb breaks?” – Asked at QUALCOMM</p></blockquote>
<p>As I said last week, I suspect that this question actually contains a typo, since 20 light bulbs is &#8220;more than plenty;&#8221; we will only ever actually use 7 of them.  Things get more interesting if we have a more limited supply of light bulbs to break.  In the usual statement of this problem, <img src='https://s-ssl.wordpress.com/latex.php?latex=b%3D2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b=2' title='b=2' class='latex' />, and the final variant from last week asked the question for <img src='https://s-ssl.wordpress.com/latex.php?latex=b%3D5&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b=5' title='b=5' class='latex' />.  However, we can tackle all of these variants at once by solving the general case.</p>
<p>The key to the solution is to turn the problem around, so to speak, and solve for <img src='https://s-ssl.wordpress.com/latex.php?latex=f&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f' title='f' class='latex' /> instead of <img src='https://s-ssl.wordpress.com/latex.php?latex=d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d' title='d' class='latex' />.  That is, <em>given</em> a maximum number of drops <img src='https://s-ssl.wordpress.com/latex.php?latex=d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d' title='d' class='latex' />, and a supply of <img src='https://s-ssl.wordpress.com/latex.php?latex=b&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b' title='b' class='latex' /> light bulbs, what is the tallest building that we can handle?  More precisely, what is the maximum number of floors <img src='https://s-ssl.wordpress.com/latex.php?latex=f%28d%2Cb%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(d,b)' title='f(d,b)' class='latex' /> for which we can guarantee to find the &#8220;critical&#8221; floor in at most <img src='https://s-ssl.wordpress.com/latex.php?latex=d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d' title='d' class='latex' /> drops?</p>
<p>Consider the first drop from the as-yet-unknown optimal floor <img src='https://s-ssl.wordpress.com/latex.php?latex=k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k' title='k' class='latex' />.  If the bulb breaks, then by Property 1 (and 3) above, there must be at most <img src='https://s-ssl.wordpress.com/latex.php?latex=f%28d-1%2Cb-1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(d-1,b-1)' title='f(d-1,b-1)' class='latex' /> floors below floor <img src='https://s-ssl.wordpress.com/latex.php?latex=k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k' title='k' class='latex' />.  If the bulb does <em>not</em> break, then by Property 2 (and 3), there must be at most <img src='https://s-ssl.wordpress.com/latex.php?latex=f%28d-1%2Cb%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(d-1,b)' title='f(d-1,b)' class='latex' /> floors <em>above</em> floor <img src='https://s-ssl.wordpress.com/latex.php?latex=k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k' title='k' class='latex' />.  Thus, <img src='https://s-ssl.wordpress.com/latex.php?latex=f%28d%2Cb%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(d,b)' title='f(d,b)' class='latex' /> satisfies the following recurrence relation:</p>
<p style="text-align:center;"><img src='https://s-ssl.wordpress.com/latex.php?latex=f%28d%2Cb%29+%3D+f%28d-1%2Cb-1%29+%2B+1+%2B+f%28d-1%2Cb%29+&amp;bg=ffffff&amp;fg=333333&amp;s=2' alt='f(d,b) = f(d-1,b-1) + 1 + f(d-1,b) ' title='f(d,b) = f(d-1,b-1) + 1 + f(d-1,b) ' class='latex' /></p>
<p style="text-align:center;"><img src='https://s-ssl.wordpress.com/latex.php?latex=f%28d%2C0%29+%3D+f%280%2Cb%29+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=2' alt='f(d,0) = f(0,b) = 0' title='f(d,0) = f(0,b) = 0' class='latex' /></p>
<p style="text-align:left;">Using the <a href="http://en.wikipedia.org/wiki/Binomial_coefficient#Recursive_formula">identity</a></p>
<p style="text-align:center;"><img src='https://s-ssl.wordpress.com/latex.php?latex=%7Bd+%5Cchoose+b%7D+%3D+%7Bd-1+%5Cchoose+b%7D+%2B+%7Bd-1+%5Cchoose+b-1%7D+&amp;bg=ffffff&amp;fg=333333&amp;s=2' alt='{d &#92;choose b} = {d-1 &#92;choose b} + {d-1 &#92;choose b-1} ' title='{d &#92;choose b} = {d-1 &#92;choose b} + {d-1 &#92;choose b-1} ' class='latex' /></p>
<p style="text-align:left;">it is not difficult to show that</p>
<p style="text-align:center;"><img src='https://s-ssl.wordpress.com/latex.php?latex=f%28d%2Cb%29+%3D+%5Csum_%7Bk%3D1%7D%5Eb+%7Bd+%5Cchoose+k%7D+&amp;bg=ffffff&amp;fg=333333&amp;s=2' alt='f(d,b) = &#92;sum_{k=1}^b {d &#92;choose k} ' title='f(d,b) = &#92;sum_{k=1}^b {d &#92;choose k} ' class='latex' /></p>
<p style="text-align:left;">This gives us a solution to all three original problems.  For any given number of floors <img src='https://s-ssl.wordpress.com/latex.php?latex=f%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f^*' title='f^*' class='latex' /> and number of light bulbs <img src='https://s-ssl.wordpress.com/latex.php?latex=b&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b' title='b' class='latex' />, we simply find the smallest number of drops <img src='https://s-ssl.wordpress.com/latex.php?latex=d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d' title='d' class='latex' /> for which <img src='https://s-ssl.wordpress.com/latex.php?latex=f%28d%2Cb%29+%5Cgeq+f%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(d,b) &#92;geq f^*' title='f(d,b) &#92;geq f^*' class='latex' />.  To answer <strong>Problem 2</strong>, for example, for a 100-floor building with 2 light bulbs, we need <strong>14 drops</strong> in the worst case.</p>
<p style="text-align:left;"><strong>Problem 3:</strong> Similarly, with 5 or more light bulbs we can do it in 7 drops&#8230; but we must be careful, since a binary search will only work with 7 or more light bulbs.  If we only have 5 (or 6) bulbs, the optimal strategy is slightly different.  Fortunately, the counting argument above gives a recipe for determining from which floor to drop the next light bulb in any situation: assuming that we have calculated the optimal number of drops <img src='https://s-ssl.wordpress.com/latex.php?latex=d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d' title='d' class='latex' /> remaining, the next drop should be from floor <img src='https://s-ssl.wordpress.com/latex.php?latex=f%28d-1%2Cb-1%29+%2B+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(d-1,b-1) + 1' title='f(d-1,b-1) + 1' class='latex' />, <em>counting from the lowest remaining &#8220;candidate&#8221; floor</em>.  For example, beginning with 5 light bulbs, the first bulb should be dropped from floor 57.  If it breaks, the second bulb is dropped from floor 26.  If it also breaks, the third bulb is dropped from floor 11.  If it breaks, the fourth bulb is dropped from floor 4.  If it breaks, the fifth and final bulb must be dropped from floors 1, 2, and 3 in the worst case, for a total of 7 drops.</p>
<p style="text-align:left;">Finally, using the <a href="http://en.wikipedia.org/wiki/Binomial_coefficient#Series_involving_binomial_coefficients">identity</a></p>
<p style="text-align:center;"><img src='https://s-ssl.wordpress.com/latex.php?latex=%5Csum_%7Bk%3D0%7D%5Ed+%7Bd+%5Cchoose+k%7D+%3D+2%5Ed+&amp;bg=ffffff&amp;fg=333333&amp;s=2' alt='&#92;sum_{k=0}^d {d &#92;choose k} = 2^d ' title='&#92;sum_{k=0}^d {d &#92;choose k} = 2^d ' class='latex' /></p>
<p style="text-align:left;">we can see how the binary search arises in the case where we have &#8220;more than enough&#8221; light bulbs.</p>
<p style="text-align:left;"> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/possiblywrong.wordpress.com/780/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/possiblywrong.wordpress.com/780/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/possiblywrong.wordpress.com/780/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/possiblywrong.wordpress.com/780/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/possiblywrong.wordpress.com/780/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/possiblywrong.wordpress.com/780/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/possiblywrong.wordpress.com/780/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/possiblywrong.wordpress.com/780/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/possiblywrong.wordpress.com/780/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/possiblywrong.wordpress.com/780/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/possiblywrong.wordpress.com/780/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/possiblywrong.wordpress.com/780/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/possiblywrong.wordpress.com/780/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/possiblywrong.wordpress.com/780/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=possiblywrong.wordpress.com&amp;blog=13213908&amp;post=780&amp;subd=possiblywrong&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://possiblywrong.wordpress.com/2012/01/08/light-bulb-puzzle-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/2b4d14aad4321acfc145fdd711235a77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">possiblywrong</media:title>
		</media:content>
	</item>
		<item>
		<title>Dropping Light Bulbs (or Eggs): An Interview Puzzle Twist</title>
		<link>https://possiblywrong.wordpress.com/2012/01/02/dropping-light-bulbs-or-eggs-an-interview-puzzle-twist/</link>
		<comments>https://possiblywrong.wordpress.com/2012/01/02/dropping-light-bulbs-or-eggs-an-interview-puzzle-twist/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 19:13:41 +0000</pubDate>
		<dc:creator>possiblywrong</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://possiblywrong.wordpress.com/?p=776</guid>
		<description><![CDATA[I had planned to at least take a few holiday weeks off from this blog, and maybe back off from writing much more at all, putting a bow on this interesting and fun &#8220;experiment&#8221; over the last year and a half. &#8230; <a href="https://possiblywrong.wordpress.com/2012/01/02/dropping-light-bulbs-or-eggs-an-interview-puzzle-twist/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=possiblywrong.wordpress.com&amp;blog=13213908&amp;post=776&amp;subd=possiblywrong&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had planned to at least take a few holiday weeks off from this blog, and maybe back off from writing much more at all, putting a bow on this interesting and fun &#8220;experiment&#8221; over the last year and a half.</p>
<p>But subject matter seems to keep dropping in my lap.  In just the last two weeks I learned about some cool new science, a brilliant and elegant algorithm I had not heard of, and a nice twist on an &#8220;old&#8221; mathematical puzzle.</p>
<p>That is plenty to choose from; but since I love puzzles, and since I am still technically trying to be on vacation, this week I will just briefly present the puzzle, and we&#8217;ll see how it goes from there.</p>
<p>A variant of the problem appeared in a year-end compilation of &#8220;Top 25 Oddball Interview Questions&#8221; (the entire list is at <a href="http://www.glassdoor.com/blog/top-25-oddball-interview-questions-2011/">glassdoor.com</a>):</p>
<blockquote><p><strong>Problem 1:</strong> “Given 20 ‘destructible’ light bulbs (which breaks at certain height), and a building with 100 floors, how do you determine the height that the light bulb breaks?” – Asked at QUALCOMM</p></blockquote>
<p>Before continuing, although I like this problem as a mathematical puzzle, I tend to dismiss this (or similar puzzles) as a useful interview question, for <a href="http://possiblywrong.wordpress.com/2011/03/13/the-job-interview-question-part-2/">reasons I have discussed before</a>.  But whether asked in an interview or not, note that this is <em>not</em> the possibly-vague &#8220;lateral thinking&#8221; type of problem as suggested <a href="http://nickzarr.com/blog4/2011/03/2-light-bulbs-and-a-100-story-building/">here</a>.  For those who have not heard this one before, we can make the problem precise as follows:</p>
<p>All light bulbs are identical in that they all have the following properties:</p>
<ol>
<li>If a light bulb is dropped from a given floor and breaks, then any other light bulb will also break if dropped from that or any higher floor.</li>
<li>If a light bulb is dropped from a given floor and does <em>not</em> break, then neither it nor any other light bulb will break if subsequently dropped from that or any <em>lower</em> floor.</li>
<li>A light bulb may be dropped any number of times until it breaks, after which it is unusable and cannot be dropped again.</li>
</ol>
<p>A &#8220;drop&#8221; consists of taking a single light bulb in the elevator up to a particular floor, dropping the light bulb from that floor, taking the elevator back down, and checking whether the dropped light bulb broke.  Your objective is to determine the highest floor from which a light bulb may be dropped without breaking, using as few drops (i.e., making as few elevator trips) as possible.  What should your strategy be to minimize the worst case number of drops required?</p>
<p><strong>Problem 2:</strong> This problem caught my eye because I suspect that it actually contains a typo&#8211; but an <em>interesting</em> typo.  In the usual statement of the problem, instead of having 20 light bulbs at your disposal, you have only 2, and if/once they are both broken, you must have enough information to determine the highest floor from which a light bulb may be safely dropped.  Now what should your strategy be?</p>
<p><strong>Problem 3:</strong> The above two variants of the problem are actually somewhat special cases, &#8220;endpoints&#8221; of a more general problem that still has a very elegant solution.  In this third &#8220;twist&#8221; variant, suppose that you have 5 light bulbs; now what should your strategy be to minimize the maximum number of drops required?  As usual, can you generalize as a function of the number of floors and light bulbs?</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/possiblywrong.wordpress.com/776/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/possiblywrong.wordpress.com/776/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/possiblywrong.wordpress.com/776/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/possiblywrong.wordpress.com/776/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/possiblywrong.wordpress.com/776/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/possiblywrong.wordpress.com/776/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/possiblywrong.wordpress.com/776/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/possiblywrong.wordpress.com/776/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/possiblywrong.wordpress.com/776/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/possiblywrong.wordpress.com/776/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/possiblywrong.wordpress.com/776/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/possiblywrong.wordpress.com/776/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/possiblywrong.wordpress.com/776/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/possiblywrong.wordpress.com/776/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=possiblywrong.wordpress.com&amp;blog=13213908&amp;post=776&amp;subd=possiblywrong&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://possiblywrong.wordpress.com/2012/01/02/dropping-light-bulbs-or-eggs-an-interview-puzzle-twist/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/2b4d14aad4321acfc145fdd711235a77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">possiblywrong</media:title>
		</media:content>
	</item>
		<item>
		<title>Secret Santa Revisited</title>
		<link>https://possiblywrong.wordpress.com/2011/12/05/secret-santa-revisited/</link>
		<comments>https://possiblywrong.wordpress.com/2011/12/05/secret-santa-revisited/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 00:41:52 +0000</pubDate>
		<dc:creator>possiblywrong</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://possiblywrong.wordpress.com/?p=735</guid>
		<description><![CDATA[Last week&#8217;s post presented two similar problems, the first being a simpler &#8220;standard&#8221; probability puzzle, and the second being rather more challenging.  Since the first problem was basically just a lead-in to this discussion, I won&#8217;t spend time on it here; &#8230; <a href="https://possiblywrong.wordpress.com/2011/12/05/secret-santa-revisited/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=possiblywrong.wordpress.com&amp;blog=13213908&amp;post=735&amp;subd=possiblywrong&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Last week&#8217;s <a href="http://possiblywrong.wordpress.com/2011/11/27/holiday-puzzles/">post</a> presented two similar problems, the first being a simpler &#8220;standard&#8221; probability puzzle, and the second being rather more challenging.  Since the first problem was basically just a lead-in to this discussion, I won&#8217;t spend time on it here; there are plenty of good descriptions of solutions elsewhere (see <a href="http://www.cut-the-knot.org/Probability/LostPass.shtml">here</a>, for example).</p>
<p>The harder second problem asks essentially the same question as discussed in the <a href="http://possiblywrong.wordpress.com/2010/10/24/deranged-secret-santa/">Deranged Secret Santa</a> post from last year: suppose that <em>n</em> participants in a Secret Santa gift exchange each put a slip of paper with their name on it into a single hat.  To determine gift-giving assignments, each participant in turn draws a slip from the hat, replacing it with another if he draws his own name.  What is the probability that this procedure &#8220;fails,&#8221; with the last person to draw finding his own name on the last slip in the hat?</p>
<p>I did some simulation and doodling on this problem last year, with limited success.  After revisiting the problem this year, there are a few more concrete and interesting results to report.</p>
<p>First, as usual, the problem has already been solved; the solution by Brian Parsonnet appears as sequence <a href="http://oeis.org/A136300">A136300</a> in the <a href="http://oeis.org/Seis.html">Online Encyclopedia of Integer Sequences</a>.  (The sequence is parameterized by the number <em>n</em> of participants, where each integer value of the sequence is the numerator of the corresponding probability with denominator <img src='https://s-ssl.wordpress.com/latex.php?latex=%28n-1%29%21%5E2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(n-1)!^2' title='(n-1)!^2' class='latex' />.)  However, the given recurrence relation is rather complex, and appears to require <img src='https://s-ssl.wordpress.com/latex.php?latex=O%282%5En%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='O(2^n)' title='O(2^n)' class='latex' /> time and space to compute.</p>
<p>It turns out that we can solve the problem more simply and efficiently (in quadratic time) by transforming the problem slightly.  Note that the statement of the problem does not explicitly specify any particular order in which participants draw slips from the hat.  That is, it does not really matter <em>who</em> is the last person to draw; all that we want to know is the probability that the last person&#8211; whoever that may be&#8211; ends up drawing their own name.</p>
<p>At each turn, then, we can <em>randomize</em> the selection of the next person to draw, without affecting the desired probability.  (In the context of last week&#8217;s airplane boarding problem, the passengers do not stand in a line; they jostle in a group near the jetway entrance, and each next person to board is selected randomly.)  This helps a lot: given <img src='https://s-ssl.wordpress.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> total participants, let <img src='https://s-ssl.wordpress.com/latex.php?latex=m&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m' title='m' class='latex' /> be the number still waiting to draw, and let <img src='https://s-ssl.wordpress.com/latex.php?latex=k+%5Cleq+m&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k &#92;leq m' title='k &#92;leq m' class='latex' /> be the number waiting to draw whose names have already been drawn.  Then the probability that the last person to draw is left with his own name is <img src='https://s-ssl.wordpress.com/latex.php?latex=p%28n%2C0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p(n,0)' title='p(n,0)' class='latex' />, where <img src='https://s-ssl.wordpress.com/latex.php?latex=p%28m%2Ck%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p(m,k)' title='p(m,k)' class='latex' /> is given by the following recurrence (with apologies for WordPress&#8217;s limited LaTeX multi-line formatting):</p>
<p style="text-align:center;"><img src='https://s-ssl.wordpress.com/latex.php?latex=p%28m%2Ck%29+%3D+%5Cfrac%7Bk%7D%7Bm%7D%5Cleft%5B%5Cfrac%7Bk%7D%7Bm%7D+p%28m-1%2Ck-1%29+%2B+%281+-+%5Cfrac%7Bk%7D%7Bm%7D%29+p%28m-1%2Ck%29%5Cright%5D+&amp;bg=ffffff&amp;fg=333333&amp;s=2' alt='p(m,k) = &#92;frac{k}{m}&#92;left[&#92;frac{k}{m} p(m-1,k-1) + (1 - &#92;frac{k}{m}) p(m-1,k)&#92;right] ' title='p(m,k) = &#92;frac{k}{m}&#92;left[&#92;frac{k}{m} p(m-1,k-1) + (1 - &#92;frac{k}{m}) p(m-1,k)&#92;right] ' class='latex' /></p>
<p style="text-align:center;"><img src='https://s-ssl.wordpress.com/latex.php?latex=%2B+%281+-+%5Cfrac%7Bk%7D%7Bm%7D%29%5Cleft%5B%5Cfrac%7Bk%7D%7Bm-1%7D+p%28m-1%2Ck%29+%2B+%281+-+%5Cfrac%7Bk%7D%7Bm-1%7D%29+p%28m-1%2Ck%2B1%29%5Cright%5D+&amp;bg=ffffff&amp;fg=333333&amp;s=2' alt='+ (1 - &#92;frac{k}{m})&#92;left[&#92;frac{k}{m-1} p(m-1,k) + (1 - &#92;frac{k}{m-1}) p(m-1,k+1)&#92;right] ' title='+ (1 - &#92;frac{k}{m})&#92;left[&#92;frac{k}{m-1} p(m-1,k) + (1 - &#92;frac{k}{m-1}) p(m-1,k+1)&#92;right] ' class='latex' /></p>
<p style="text-align:center;"><img src='https://s-ssl.wordpress.com/latex.php?latex=p%281%2Ck%29+%3D+1+-+k+&amp;bg=ffffff&amp;fg=333333&amp;s=2' alt='p(1,k) = 1 - k ' title='p(1,k) = 1 - k ' class='latex' /></p>
<p style="text-align:left;">As the following plot shows, the probability of failure varies approximately as <img src='https://s-ssl.wordpress.com/latex.php?latex=1%2Fn&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1/n' title='1/n' class='latex' />; the probability for <img src='https://s-ssl.wordpress.com/latex.php?latex=n%3D100&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n=100' title='n=100' class='latex' /> in the original problem is approximately 0.0095018.</p>
<div id="attachment_757" class="wp-caption alignnone" style="width: 370px"><a href="http://possiblywrong.files.wordpress.com/2011/12/santa.png"><img class="size-full wp-image-757" title="santa" src="http://possiblywrong.files.wordpress.com/2011/12/santa.png?w=640" alt=""   /></a><p class="wp-caption-text">Probabiilty that the last person draws his own name vs. group size.</p></div>
<p style="text-align:left;">Finally, this slight transformation of the problem yields an interesting additional bonus: recall the &#8220;warning&#8221; given in <a href="http://possiblywrong.wordpress.com/2010/10/24/deranged-secret-santa/">last year&#8217;s post</a>, suggesting that you probably do not want to use this procedure at all for your Secret Santa gift exchange.  The problem is that all possible permutations (specifically, all possible derangements) mapping gifters to recipients are not equally likely.  Even if you handle the small failure possibility of the last person drawing his own name by starting the whole procedure over, some participants are still more likely to draw certain names than others.  (As mentioned last year, the most extreme deviation is near the end of the line, with the last person to draw being nearly twice as likely to draw the <em>next-to-last</em> person as to draw the <em>first</em> person in line.  See the Mathematica source code below to calculate these probabilities.)</p>
<p style="text-align:left;">We can relax that warning a bit, based on the following observation: as in the puzzle solution above, if we modify the procedure slightly by first <em>randomizing the order in which participants draw names</em>&#8230; then the resulting random assignment <em>does</em> at least have the nice property that each person is equally likely to draw any other person&#8217;s name!</p>
<p style="text-align:left;">I verified this numerically for <img src='https://s-ssl.wordpress.com/latex.php?latex=n+%5Cleq+8&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n &#92;leq 8' title='n &#92;leq 8' class='latex' /> using the code below, but I think this follows generally from a simple symmetry argument.  However, this is a weaker statement than the stronger claim that all derangements are equally likely, which still does not hold (<img src='https://s-ssl.wordpress.com/latex.php?latex=n%3D4&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n=4' title='n=4' class='latex' /> is a minimal counterexample).</p>
<p><pre class="brush: plain; collapse: true; light: false; toolbar: true;">
board[seats_, assigned_, prob_] :=
 Module[
  {passenger, s, p},
  If[Length[seats] === 1,
   If[seats === {Length[assigned] + 1}, Return[]];
   MapIndexed[
    (overall[[#2[[1]], #1]] += prob) &amp;,
    Append[assigned, First[seats]]
    ],
   passenger = Length[assigned] + 1;
   s = DeleteCases[seats, passenger];
   p = 1/Length[s];
   Scan[
    board[DeleteCases[seats, #], Append[assigned, #], prob*p] &amp;,
    s
    ]
   ]
  ]

n = 10;
overall = Table[0, {n}, {n}];
board[Range[n], {}, 1];
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/possiblywrong.wordpress.com/735/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/possiblywrong.wordpress.com/735/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/possiblywrong.wordpress.com/735/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/possiblywrong.wordpress.com/735/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/possiblywrong.wordpress.com/735/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/possiblywrong.wordpress.com/735/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/possiblywrong.wordpress.com/735/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/possiblywrong.wordpress.com/735/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/possiblywrong.wordpress.com/735/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/possiblywrong.wordpress.com/735/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/possiblywrong.wordpress.com/735/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/possiblywrong.wordpress.com/735/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/possiblywrong.wordpress.com/735/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/possiblywrong.wordpress.com/735/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=possiblywrong.wordpress.com&amp;blog=13213908&amp;post=735&amp;subd=possiblywrong&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://possiblywrong.wordpress.com/2011/12/05/secret-santa-revisited/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/2b4d14aad4321acfc145fdd711235a77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">possiblywrong</media:title>
		</media:content>

		<media:content url="http://possiblywrong.files.wordpress.com/2011/12/santa.png" medium="image">
			<media:title type="html">santa</media:title>
		</media:content>
	</item>
		<item>
		<title>Holiday Puzzles</title>
		<link>https://possiblywrong.wordpress.com/2011/11/27/holiday-puzzles/</link>
		<comments>https://possiblywrong.wordpress.com/2011/11/27/holiday-puzzles/#comments</comments>
		<pubDate>Sun, 27 Nov 2011 18:37:06 +0000</pubDate>
		<dc:creator>possiblywrong</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://possiblywrong.wordpress.com/?p=731</guid>
		<description><![CDATA[Following are a couple of related puzzles, motivated by this holiday season: 1. You are standing at the very end of a line of 100 holiday travelers (you and 99 others) waiting to board an airplane.  Each passenger in line has a &#8230; <a href="https://possiblywrong.wordpress.com/2011/11/27/holiday-puzzles/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=possiblywrong.wordpress.com&amp;blog=13213908&amp;post=731&amp;subd=possiblywrong&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Following are a couple of related puzzles, motivated by this holiday season:</p>
<p>1. You are standing at the very end of a line of 100 holiday travelers (you and 99 others) waiting to board an airplane.  Each passenger in line has a boarding pass assigning him or her to one of the 100 seats on the airplane.  However, the first person in line is rather confused, and so instead of sitting in her assigned seat, she boards the airplane and simply selects a seat at random (possibly her own).  As each subsequent passenger boards the airplane, he sits in his assigned seat if it is empty, or selects an empty seat at random if it is not.  What is the probability you, the last person to board, will be able to sit in your assigned seat?</p>
<p>2. Preparing to return home after the holiday, you find yourself once again last in a line of 100 travelers waiting to board an airplane.  This time, it is not just the <em>first</em> person in line who is confused; after a stressful holiday with their families, now <em>every</em> person in line is not just confused but <em>deranged</em>.  That is, each passenger in turn boards the airplane and selects a seat at random from all currently empty seats, <em>excluding their own</em>.  What is the probability that you, the last person to board, will be forced to sit in your assigned seat?</p>
<p>The first problem is an oldie but a goodie.  I like it because it can be approached in several different ways.  It is easy to simulate using a computer, which quickly leads to conjecture at the solution.  Given the conjecture, the proof is a nice application of mathematical induction.  But there are also nice symmetry arguments via which the problem may be solved more directly.</p>
<p>The second problem is more difficult, and is the real motivation for this post.  Solutions to both are welcome in the comments&#8211; until then, consider in what other way(s) this second problem might arise in relation to the holidays?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/possiblywrong.wordpress.com/731/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/possiblywrong.wordpress.com/731/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/possiblywrong.wordpress.com/731/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/possiblywrong.wordpress.com/731/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/possiblywrong.wordpress.com/731/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/possiblywrong.wordpress.com/731/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/possiblywrong.wordpress.com/731/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/possiblywrong.wordpress.com/731/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/possiblywrong.wordpress.com/731/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/possiblywrong.wordpress.com/731/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/possiblywrong.wordpress.com/731/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/possiblywrong.wordpress.com/731/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/possiblywrong.wordpress.com/731/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/possiblywrong.wordpress.com/731/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=possiblywrong.wordpress.com&amp;blog=13213908&amp;post=731&amp;subd=possiblywrong&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://possiblywrong.wordpress.com/2011/11/27/holiday-puzzles/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/2b4d14aad4321acfc145fdd711235a77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">possiblywrong</media:title>
		</media:content>
	</item>
		<item>
		<title>The Ultimate Answer to the Ultimate Question</title>
		<link>https://possiblywrong.wordpress.com/2011/11/12/the-ultimate-answer-to-the-ultimate-question/</link>
		<comments>https://possiblywrong.wordpress.com/2011/11/12/the-ultimate-answer-to-the-ultimate-question/#comments</comments>
		<pubDate>Sat, 12 Nov 2011 15:45:45 +0000</pubDate>
		<dc:creator>possiblywrong</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://possiblywrong.wordpress.com/?p=725</guid>
		<description><![CDATA[Last week&#8217;s puzzle asked for the largest regular polygon in a &#8220;cycle,&#8221; or a collection of regular polygons all with side length 1 sharing a common central vertex, with consecutive pairs of polygons sharing exactly a common edge.  I had &#8230; <a href="https://possiblywrong.wordpress.com/2011/11/12/the-ultimate-answer-to-the-ultimate-question/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=possiblywrong.wordpress.com&amp;blog=13213908&amp;post=725&amp;subd=possiblywrong&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Last week&#8217;s puzzle asked for the largest regular polygon in a &#8220;cycle,&#8221; or a collection of regular polygons all with side length 1 sharing a common central vertex, with consecutive pairs of polygons sharing exactly a common edge.  I had tackled a simpler version of this problem before, with exactly 3 polygons each with a distinct number of sides.  With this slight generalization&#8211; any number of polygons, possibly with equal numbers of sides&#8211; this already nice mathematical problem acquires a nice computational twist.</p>
<p>Following is Mathematica code that enumerates all possible cycles, unique up to permutations.  It is essentially a lexicographic enumeration of cycles of <img src='https://s-ssl.wordpress.com/latex.php?latex=m&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m' title='m' class='latex' /> polygons, where <img src='https://s-ssl.wordpress.com/latex.php?latex=3+%5Cleq+m+%5Cleq+6&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='3 &#92;leq m &#92;leq 6' title='3 &#92;leq m &#92;leq 6' class='latex' />.  (We need at least 3 polygons, since the interior angle of any regular polygon is strictly less than 180 degrees.  There can be at most 6 polygons, since the smallest interior angle of any regular polygon is 60 degrees.)  The idea is to enumerate &#8220;candidate prefixes&#8221; of <img src='https://s-ssl.wordpress.com/latex.php?latex=m-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m-1' title='m-1' class='latex' /> polygons, since the number of sides in the <img src='https://s-ssl.wordpress.com/latex.php?latex=m&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m' title='m' class='latex' />-th polygon is determined by the others:</p>
<p><pre class="brush: plain;">
Do[
    n=Table[3,{m-1}]; (* Start with all triangles *)
    While[True,
        s=Total[180-360/n]; (* Compute sum of interior angles *)
        k=Length[n];        (* Usually we increment the last polygon *)
        If[s&gt;180,           (* Remaining polygon contributes &lt; 180 deg *)
            p=360/(s-180);  (* Compute number of sides of remaining polygon *)
            If[p&lt;Last[n],
                t=Split[n]; (* Remaining polygon is too small *)
                If[Length[t]&gt;1,
                    k=k-Length[t//Last], (* Increment at last difference *)
                    Break[]              (* Stop if all polygons are equal *)
                ],
                If[IntegerQ[p],Print[Append[n,p]]] (* Record valid cycles *)
            ]
        ];
        n[[Range[k,Length[n]]]]=n[[k]]+1 (* Move to next candidate cycle *)
    ],
    {m,3,6}
]
</pre></p>
<p>This yields the following output, where it turns out that the desired largest polygon is realized in the lexicographically first cycle:</p>
<p><pre class="brush: plain;">
{3,7,42}
{3,8,24}
{3,9,18}
{3,10,15}
{3,12,12}
{4,5,20}
{4,6,12}
{4,8,8}
{5,5,10}
{6,6,6}
{3,3,4,12}
{3,3,6,6}
{3,4,4,6}
{4,4,4,4}
{3,3,3,3,6}
{3,3,3,4,4}
{3,3,3,3,3,3}
</pre></p>
<p>Another reason that I like this problem&#8211; beyond the fact that its solution is the answer to &#8220;Life, the Universe, and Everything&#8221;&#8211; is that the answer, 42, is&#8230; well, <em>large</em>.  That is, my own intuition would not have suggested a cycle might involve a polygon with that many sides.</p>
<p>This phenomenon of &#8220;surprisingly large numbers&#8221; in mathematics is what reminded me of this problem and motivated the last couple of posts.  The subject of conversation was actually &#8221;surprisingly large minimal counterexamples,&#8221; or the dangers of &#8220;poor man&#8217;s induction:&#8221; observing a property for many values of <em>n</em>, and supposing that the property then holds for <em>all n</em>.</p>
<p>There are a lot of interesting examples of this sort of thing, from <a href="http://en.wikipedia.org/wiki/P%C3%B3lya_conjecture">Polya&#8217;s conjecture</a> (the smallest value of <em>n</em> for which the conjecture fails: 906,150,257) to the <a href="http://mathworld.wolfram.com/ChebyshevBias.html">Chebyshev Bias</a> or &#8220;prime race&#8221; (23,338,590,792).  And although <a href="http://en.wikipedia.org/wiki/Graham's_number">Graham&#8217;s number</a> is not exactly the same thing&#8211; it is &#8220;merely&#8221; a <em>proven upper bound</em> on a minimum solution to an easily stated problem in graph theory&#8211; as far as mathematically relevant large numbers go, it&#8217;s one of the more mind-blowing ones.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/possiblywrong.wordpress.com/725/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/possiblywrong.wordpress.com/725/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/possiblywrong.wordpress.com/725/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/possiblywrong.wordpress.com/725/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/possiblywrong.wordpress.com/725/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/possiblywrong.wordpress.com/725/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/possiblywrong.wordpress.com/725/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/possiblywrong.wordpress.com/725/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/possiblywrong.wordpress.com/725/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/possiblywrong.wordpress.com/725/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/possiblywrong.wordpress.com/725/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/possiblywrong.wordpress.com/725/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/possiblywrong.wordpress.com/725/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/possiblywrong.wordpress.com/725/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=possiblywrong.wordpress.com&amp;blog=13213908&amp;post=725&amp;subd=possiblywrong&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://possiblywrong.wordpress.com/2011/11/12/the-ultimate-answer-to-the-ultimate-question/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/2b4d14aad4321acfc145fdd711235a77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">possiblywrong</media:title>
		</media:content>
	</item>
		<item>
		<title>Polygon Puzzle</title>
		<link>https://possiblywrong.wordpress.com/2011/11/05/polygon-puzzle/</link>
		<comments>https://possiblywrong.wordpress.com/2011/11/05/polygon-puzzle/#comments</comments>
		<pubDate>Sat, 05 Nov 2011 16:48:18 +0000</pubDate>
		<dc:creator>possiblywrong</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://possiblywrong.wordpress.com/?p=718</guid>
		<description><![CDATA[You have an unlimited supply of regular polygons, each with side length 1: triangles, squares, pentagons, etc.  Some combinations of these polygons may be arranged in a &#8220;cycle&#8221; so that they all share a common vertex and any consecutive pair of polygons share exactly &#8230; <a href="https://possiblywrong.wordpress.com/2011/11/05/polygon-puzzle/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=possiblywrong.wordpress.com&amp;blog=13213908&amp;post=718&amp;subd=possiblywrong&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You have an unlimited supply of regular polygons, each with side length 1: triangles, squares, pentagons, etc.  Some combinations of these polygons may be arranged in a &#8220;cycle&#8221; so that they all share a common vertex and any consecutive pair of polygons share exactly a common edge.  (See the example below.)  What is the largest <em>n</em>-gon in such a cycle?</p>
<div id="attachment_720" class="wp-caption alignnone" style="width: 353px"><a href="http://possiblywrong.files.wordpress.com/2011/11/poly.png"><img class="size-full wp-image-720" title="poly" src="http://possiblywrong.files.wordpress.com/2011/11/poly.png?w=640" alt=""   /></a><p class="wp-caption-text">Example using 3 triangles and 2 squares.</p></div>
<p>Hint (sort of): There is a much better title for this post, but unfortunately it would give away the solution to the problem.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/possiblywrong.wordpress.com/718/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/possiblywrong.wordpress.com/718/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/possiblywrong.wordpress.com/718/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/possiblywrong.wordpress.com/718/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/possiblywrong.wordpress.com/718/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/possiblywrong.wordpress.com/718/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/possiblywrong.wordpress.com/718/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/possiblywrong.wordpress.com/718/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/possiblywrong.wordpress.com/718/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/possiblywrong.wordpress.com/718/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/possiblywrong.wordpress.com/718/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/possiblywrong.wordpress.com/718/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/possiblywrong.wordpress.com/718/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/possiblywrong.wordpress.com/718/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=possiblywrong.wordpress.com&amp;blog=13213908&amp;post=718&amp;subd=possiblywrong&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://possiblywrong.wordpress.com/2011/11/05/polygon-puzzle/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/2b4d14aad4321acfc145fdd711235a77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">possiblywrong</media:title>
		</media:content>

		<media:content url="http://possiblywrong.files.wordpress.com/2011/11/poly.png" medium="image">
			<media:title type="html">poly</media:title>
		</media:content>
	</item>
		<item>
		<title>Analysis of the Memory Game</title>
		<link>https://possiblywrong.wordpress.com/2011/10/25/analysis-of-the-memory-game/</link>
		<comments>https://possiblywrong.wordpress.com/2011/10/25/analysis-of-the-memory-game/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 22:29:26 +0000</pubDate>
		<dc:creator>possiblywrong</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://possiblywrong.wordpress.com/?p=682</guid>
		<description><![CDATA[I spent an unhealthy chunk of my weekend studying one of the simplest possible children&#8217;s games, which turns out to have some surprisingly complex and interesting strategy.  I remember it as Concentration, also known as Memory.  (There is a very &#8230; <a href="https://possiblywrong.wordpress.com/2011/10/25/analysis-of-the-memory-game/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=possiblywrong.wordpress.com&amp;blog=13213908&amp;post=682&amp;subd=possiblywrong&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I spent an unhealthy chunk of my weekend studying one of the simplest possible children&#8217;s games, which turns out to have some surprisingly complex and interesting strategy.  I remember it as <a href="http://en.wikipedia.org/wiki/Concentration_%28game%29">Concentration</a>, also known as Memory.  (There is a very cool Android solitaire version of the game <a href="https://market.android.com/details?id=org.wubo.memmatch&amp;feature=search_result">here</a>, which is what got me started thinking about this problem and spending so much time on it.  Thanks a lot, <a href="http://brianttaylor.com/">Brian</a>. <img src='https://s-ssl.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<p><strong>Rules of the game</strong></p>
<p>The rules are simple: the game begins with a deck of <em>n</em> matching pairs of cards (2<em>n</em> cards total), shuffled and arranged face-down on a table.  A player&#8217;s turn consists of flipping up two cards, one at a time.  If they match, the player removes the pair and takes another turn.  Otherwise, the cards are returned face-down to the table and the next player takes a turn.  Play continues until all pairs are removed (or until all players agree to end the game), at which point the player with the most collected pairs wins the game.</p>
<p>The references at the end of this post provide extensive analysis of the game for two players.  However, there are some interesting additional subtleties in rules and strategy that seem to have been either missed or omitted.  Following is a summary of my analysis of the game, with a focus on these additional details.</p>
<p>First, how is this a game of <em>strategy</em>?  As its name implies, the game is intended to be a memory exercise, remembering the locations of previously revealed matching cards.  Playing against a person&#8211; or a computer&#8211; with a perfect memory would not be much fun&#8230; unless we leveled the playing field by modifying the rules slightly, so that selected unmatched cards <em>remain face-up on the table</em> even after a player&#8217;s turn ends.  In this version of the game, <em>everyone</em> has a perfect memory, since all previously selected but unmatched cards are visible and known to both players.</p>
<p>This new game might seem rather boring: on each turn, simply collect any face-up pairs, flip up a face-down card, collect the new pair if possible, otherwise flip up another face-down card.  Right?  Wrong.  Optimal strategy frequently consists of seemingly strange moves, such as flipping up a card, and if its match is not known, selecting a <em>known, unmatching face-up card</em>, effectively skipping the rest of the turn.  And there are still stranger moves, as we shall see.</p>
<p><strong>Game states<br />
</strong></p>
<p>We can represent a game state as a tuple <img src='https://s-ssl.wordpress.com/latex.php?latex=%28n%2Ck%2Cp%2Cs%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(n,k,p,s)' title='(n,k,p,s)' class='latex' />, where <img src='https://s-ssl.wordpress.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> is the total number of pairs of cards still on the table, <img src='https://s-ssl.wordpress.com/latex.php?latex=k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k' title='k' class='latex' /> is the number of face-up cards on the table, and <img src='https://s-ssl.wordpress.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> is the number of face-up matched pairs on the table.  The game state must satisfy</p>
<p style="text-align:center;"><img src='https://s-ssl.wordpress.com/latex.php?latex=0+%5Cleq+2p+%5Cleq+k+%5Cleq+2n+&amp;bg=ffffff&amp;fg=333333&amp;s=2' alt='0 &#92;leq 2p &#92;leq k &#92;leq 2n ' title='0 &#92;leq 2p &#92;leq k &#92;leq 2n ' class='latex' /></p>
<p style="text-align:center;"><img src='https://s-ssl.wordpress.com/latex.php?latex=p+%5Cgeq+k+-+n+&amp;bg=ffffff&amp;fg=333333&amp;s=2' alt='p &#92;geq k - n ' title='p &#92;geq k - n ' class='latex' /></p>
<p>Finally, <img src='https://s-ssl.wordpress.com/latex.php?latex=s&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s' title='s' class='latex' /> is the &#8220;score&#8221; of the next player to move, or the difference of the numbers of pairs collected by each player.  The initial state of a game is of the form <img src='https://s-ssl.wordpress.com/latex.php?latex=%28n%2C0%2C0%2C0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(n,0,0,0)' title='(n,0,0,0)' class='latex' />.</p>
<p>Optimal strategy depends on what we are playing for.  That is, what is the value of a completed game <img src='https://s-ssl.wordpress.com/latex.php?latex=v%280%2C0%2C0%2Cs%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='v(0,0,0,s)' title='v(0,0,0,s)' class='latex' />?  The references focus on the case <img src='https://s-ssl.wordpress.com/latex.php?latex=v%280%2C0%2C0%2Cs%29+%3D+s&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='v(0,0,0,s) = s' title='v(0,0,0,s) = s' class='latex' /> where, for example, each player wins one dollar from the other player for each pair collected.  In this case, we are trying to maximize the expected gain, or expected value of <img src='https://s-ssl.wordpress.com/latex.php?latex=s&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s' title='s' class='latex' />.  However, I think a more common and realistic valuation is simply &#8220;win, lose, or draw,&#8221; with <img src='https://s-ssl.wordpress.com/latex.php?latex=v%280%2C0%2C0%2Cs%29+%3D+sgn%28s%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='v(0,0,0,s) = sgn(s)' title='v(0,0,0,s) = sgn(s)' class='latex' />, which corresponds to maximizing the probability of winning, disregarding the margin of victory.  [<em>Edit</em>: After some discussion, I realized that this correspondence only holds when ties are impossible; i.e., the number <img src='https://s-ssl.wordpress.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> of pairs is odd.  For even <img src='https://s-ssl.wordpress.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' />, the game may end in a draw, and maximizing the expected value of <img src='https://s-ssl.wordpress.com/latex.php?latex=sgn%28s%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='sgn(s)' title='sgn(s)' class='latex' /> does not necessarily maximize the probability of winning outright.]</p>
<p><strong>Moves</strong></p>
<p>A move by a player is a two-step process, consisting of selecting two cards, with the observation of the first card possibly affecting the choice of the second.  Considering all possible such selections, even &#8220;those that might not look clever,&#8221; as Gerez puts it, there are 9 different moves:</p>
<ol>
<li><strong>PP</strong>: collect a face-up matching pair (and take another turn).</li>
<li><strong>OO</strong>: pick up two face-up (&#8220;old&#8221;) but non-matching cards, effectively skipping the turn.  (This is what Zwick refers to as a 0-move.)</li>
<li><strong>PN</strong>: pick up one of a face-up pair and a face-down (&#8220;new&#8221;) card, effectively skipping the turn while revealing an additional card.</li>
<li><strong>ON</strong>: pick up a face-up non-paired card and a face-down card.</li>
<li><strong>NPO</strong>: pick up a face-down card and its match if known, otherwise a non-matching face-up card.  (This is what Zwick refers to as a 1-move.)</li>
<li><strong>NPN</strong>: pick up a face-down card and its match if known, otherwise another face-down card.  (This is what Zwick refers to as a 2-move, and is the move that many players might use exclusively.)</li>
<li><strong>NNN</strong>: pick up two face-down cards.</li>
<li><strong>NON</strong>: pick up a face-down card and, if its match is known, a non-matching face-up card (leaving a known pair on the table!), otherwise another face-down card.  (This is what Gerez and Zwick refer to as a &#8220;sacrifice.&#8221;)</li>
<li><strong>NNO</strong>: pick up a face-down card and, if its match is known, another face-down card (leaving a pair on the table), otherwise a face-up card.</li>
</ol>
<p>The <strong>OO</strong> move is particularly interesting, since it effectively amounts to a &#8220;pass,&#8221; which raises the question of how to ensure that the game terminates.  In the gain-maximizing case focused on in the references (i.e., <img src='https://s-ssl.wordpress.com/latex.php?latex=v%280%2C0%2C0%2Cs%29%3Ds&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='v(0,0,0,s)=s' title='v(0,0,0,s)=s' class='latex' />), it is not difficult to show that the game is symmetric, in the sense that if the <strong>OO</strong> move is optimal for one player, then it is optimal for the other as well.  In other words, if one player wants to end the game, the other player will agree to end the game as well.</p>
<p>However, when the goal is to maximize the probability of winning, the game is no longer symmetric, and things get more complicated.  There are several different reasonable rule variations that deal with the <strong>OO</strong> move, each of which yields slightly different strategy and advantage for each player, in approximately decreasing order of my personal preference:</p>
<ol>
<li>&#8220;Agreed end:&#8221; A player may make an <strong>OO</strong> move, and if the other player also makes an immediately following <strong>OO</strong> move, then the game ends.</li>
<li>&#8220;Ko rule:&#8221; This is similar to the <a href="http://en.wikipedia.org/wiki/Go_%28game%29#The_ko_rule">ko rule in Go</a> that prohibits returning to the same game state: an <strong>OO</strong> move may not be immediately followed by another <strong>OO</strong> move.</li>
<li>&#8220;Quit while you&#8217;re ahead:&#8221; An <strong>OO</strong> move unilaterally ends the game, with the outcome determined by the current difference of collected pairs.  In the gain-maximizing case only, this is equivalent to an agreed end as in (1).</li>
<li>&#8220;Withdraw:&#8221; An <strong>OO</strong> move unilaterally ends the game in a draw.</li>
</ol>
<p>Of course, given all of these complications, another possibility is to simply disallow the <strong>OO</strong> move altogether.  This variant actually yields the most interesting optimal playing strategy.  In the game where the objective is to maximize the probability of winning, and the <strong>OO</strong> move is prohibited, the following table shows a portion of the optimal playing strategy, for game states of the form <img src='https://s-ssl.wordpress.com/latex.php?latex=%28n%2Ck%2C0%2C0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(n,k,0,0)' title='(n,k,0,0)' class='latex' />:</p>
<div id="attachment_706" class="wp-caption alignnone" style="width: 650px"><a href="http://possiblywrong.files.wordpress.com/2011/10/memory.png"><img class="size-full wp-image-706" title="memory" src="http://possiblywrong.files.wordpress.com/2011/10/memory.png?w=640&#038;h=290" alt="" width="640" height="290" /></a><p class="wp-caption-text">Optimal strategy for game states (n, k, 0, 0).</p></div>
<p>For brevity and clarity, the common <strong>NPO</strong> and <strong>NPN</strong> moves are indicated by 1 and 2, respectively.  There are a couple of unexpected weird moves: for game states <img src='https://s-ssl.wordpress.com/latex.php?latex=%28n%2Cn-1%2C0%2C0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(n,n-1,0,0)' title='(n,n-1,0,0)' class='latex' /> with <img src='https://s-ssl.wordpress.com/latex.php?latex=n+%5Cgeq+5&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n &#92;geq 5' title='n &#92;geq 5' class='latex' />, the optimal strategy is the <strong>NON</strong> &#8220;sacrifice.&#8221;  Also, for <img src='https://s-ssl.wordpress.com/latex.php?latex=%283%2C1%2C0%2C0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(3,1,0,0)' title='(3,1,0,0)' class='latex' /> (i.e., the game is tied and six cards remain on the table with one face-up), you can psyche out your opponent with an <strong>NNO</strong> move: if you happen to flip up the matching card, leave the pair on the table and flip up another face-down card!</p>
<p>A final computer science note: analysis of optimal strategy for the Memory game is essentially a dynamic programming problem.  Mathematica&#8217;s automatic memoization once again makes this particularly easy; source code in PDF format is available <a href="http://sites.google.com/site/erfarmer/downloads/memory.pdf?attredirects=0">here</a>.</p>
<p>References:</p>
<ol>
<li>S. H. Gerez, An Analysis of the &#8220;Memory&#8221; Game, 65-Afternoon Project Report (in handwritten Dutch with English summary).  University of Twente, 1983. [<a href="http://wwwhome.ewi.utwente.nl/%7Egerezsh/recmath/index.html">PDF</a>]</li>
<li>I. Stewart, Concentration: a winning strategy.  <em>Scientific American</em>, <strong>265</strong>(4) (October 1991):103-105.</li>
<li>U. Zwick and M. S. Paterson, The memory game.  <em>Theoretical Computer Science</em>, <strong>110</strong> (1993):169-196. [<a href="http://www.sciencedirect.com/science/article/pii/030439759390355W">PDF</a>]</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/possiblywrong.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/possiblywrong.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/possiblywrong.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/possiblywrong.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/possiblywrong.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/possiblywrong.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/possiblywrong.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/possiblywrong.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/possiblywrong.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/possiblywrong.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/possiblywrong.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/possiblywrong.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/possiblywrong.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/possiblywrong.wordpress.com/682/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=possiblywrong.wordpress.com&amp;blog=13213908&amp;post=682&amp;subd=possiblywrong&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://possiblywrong.wordpress.com/2011/10/25/analysis-of-the-memory-game/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/2b4d14aad4321acfc145fdd711235a77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">possiblywrong</media:title>
		</media:content>

		<media:content url="http://possiblywrong.files.wordpress.com/2011/10/memory.png" medium="image">
			<media:title type="html">memory</media:title>
		</media:content>
	</item>
		<item>
		<title>Use Your Head</title>
		<link>https://possiblywrong.wordpress.com/2011/10/09/use-your-head/</link>
		<comments>https://possiblywrong.wordpress.com/2011/10/09/use-your-head/#comments</comments>
		<pubDate>Sun, 09 Oct 2011 14:39:35 +0000</pubDate>
		<dc:creator>possiblywrong</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://possiblywrong.wordpress.com/?p=673</guid>
		<description><![CDATA[Last week I saw an interesting experiment demonstrating a phenomenon that I had not seen before.  In this video clip from a past episode of Top Gear, Clarkson uses a remote key fob to lock a car from a distance of about &#8230; <a href="https://possiblywrong.wordpress.com/2011/10/09/use-your-head/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=possiblywrong.wordpress.com&amp;blog=13213908&amp;post=673&amp;subd=possiblywrong&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Last week I saw an interesting experiment demonstrating a phenomenon that I had not seen before.  In this video clip from a past episode of <em><a href="http://www.youtube.com/watch?v=_jACSPipPSE">Top Gear</a></em>, Clarkson uses a remote key fob to lock a car from a distance of about 40 yards.  He then walks an additional 10-15 yards away from the car, and demonstrates that the key fob no longer works&#8230; until he places the fob against his temple and tries again, and it works!</p>
<p>Some additional online searching suggests that this &#8220;trick&#8221; of using your head to increase the key fob&#8217;s range also seems to work as well or even better by placing the fob under your chin, sometimes accompanied by opening your mouth.  There are a lot of proposed explanations for <em>why</em> this works, along with repeated experiments confirming that it <em>does</em> work.  One of the more interesting explanations is the following quote from a 2009 <a href="http://www.nytimes.com/2009/02/19/technology/personaltech/19basics.html"><em>New York Times</em> article</a>:</p>
<blockquote><p>The trick turns your head into an antenna, says Tim Pozar, a Silicon Valley radio engineer.  Mr. Pozar explains, “You are capacitively coupling the fob to your head. With all the fluids in your head it ends up being a nice conductor. Not a great one, but it works.”</p></blockquote>
<p>At this point I was certainly intrigued, but skeptical.  I think the experimental setup is very important here, with the potential for either unintended misinterpretation of results&#8230; or even the <em>intentional misdirection</em> of a magician&#8217;s trick.  The experiment is reproduced again in this <a href="http://www.unplggd.com/unplggd/look/tech-myth-holding-the-care-remote-to-your-head-increases-its-range-083663">Unplggd article</a>:</p>
<blockquote><p>One step back beyond the point of being out of range, I confirmed that the remote didn’t work. Then I <strong>raised the remote</strong> <em>[my emphasis]</em>, pressed it to my chin, and squeezed the button. I heard a “chirp!” in the distance and saw the headlights flash. Huh. So I started walking backwards. All in all I was able to back up 42 steps, roughly 85 feet, before I was no longer able to make contact with the car by holding the remote to my chin.</p></blockquote>
<p>Sometimes&#8211; as in the neutrino timing experiment mentioned in my last post&#8211; science is hard, being some combination of expensive, difficult, or complicated to carry out.  But in this case, it was relatively cheap, easy, and straightforward to simply try it myself, and see what happened.</p>
<p>It is nice being married to a woman who not only tolerates but enables these projects and excursions of mine.  Last Saturday morning, she and I drove to the reasonably flat, completely empty parking lot at the nearby high school.  She recorded the maximum distance from which I could consistently lock the car using the remote key fob, while holding the fob in several different positions and orientations.</p>
<p>(Distances were measured in increments of 10 feet, conveniently marked by the intersections of painted lines on the lot.  By &#8220;consistently lock the car&#8221; I mean that I could lock the car with each of three button presses, but 10 feet farther away I failed on at least two of three attempts.  I was somewhat surprised that the range actually dropped off this sharply.)</p>
<p>Holding the fob in &#8220;typical&#8221; fashion, away from my body at approximately chest height and pointing it at the car, the fob&#8217;s range was 80 feet; i.e., at 90 feet it stopped working.  As in the above experiments, I then held the fob under my chin&#8230; and the fob&#8217;s range increased to 110 feet!  So far, so good, although opening or closing my mouth did not appear to make any difference.  I also tried holding the fob to my right temple, where the range increased to 140 feet.</p>
<p>See where this is going?  I think the problem is that, at least in the descriptions I have read or videos I have seen, this is where the experiment ends.  But I also tried holding the fob at chin height, in the same orientation relative to the car, but <em>away from my body</em>, and the range remained at 110 feet.  Similarly, holding the fob at the height of my temple, but away from my body, yielded a range of 140 feet.  (We did actually observe one success out of three attempts at 150 feet.)</p>
<p>Finally, the most effective method that I tried was holding (and pointing) the fob straight up over my head, which increased the range to 190 feet.  In other words, <em>the higher the fob, the longer the range</em>.  We observed no effect of the fob&#8217;s position relative to my head, only relative to the ground.</p>
<p>Myth busted?  It would seem so&#8230; but I wonder if others have tried this experiment, also distinguishing height above the ground from position relative to the head as separate controlled parameters, and observed different results.  Maybe I was doing something wrong?  It would certainly make for a much cooler &#8220;did you know&#8221; phenomenon if there really was something to the &#8220;capacitive coupling to your head.&#8221;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/possiblywrong.wordpress.com/673/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/possiblywrong.wordpress.com/673/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/possiblywrong.wordpress.com/673/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/possiblywrong.wordpress.com/673/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/possiblywrong.wordpress.com/673/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/possiblywrong.wordpress.com/673/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/possiblywrong.wordpress.com/673/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/possiblywrong.wordpress.com/673/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/possiblywrong.wordpress.com/673/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/possiblywrong.wordpress.com/673/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/possiblywrong.wordpress.com/673/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/possiblywrong.wordpress.com/673/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/possiblywrong.wordpress.com/673/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/possiblywrong.wordpress.com/673/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=possiblywrong.wordpress.com&amp;blog=13213908&amp;post=673&amp;subd=possiblywrong&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://possiblywrong.wordpress.com/2011/10/09/use-your-head/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/2b4d14aad4321acfc145fdd711235a77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">possiblywrong</media:title>
		</media:content>
	</item>
		<item>
		<title>Everything Is Possibly Wrong</title>
		<link>https://possiblywrong.wordpress.com/2011/09/25/everything-is-possibly-wrong/</link>
		<comments>https://possiblywrong.wordpress.com/2011/09/25/everything-is-possibly-wrong/#comments</comments>
		<pubDate>Sun, 25 Sep 2011 19:27:19 +0000</pubDate>
		<dc:creator>possiblywrong</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://possiblywrong.wordpress.com/?p=663</guid>
		<description><![CDATA[But it usually isn&#8217;t. This past week, scientists at CERN announced some very interesting results suggesting that neutrinos may be able to travel faster than the speed of light.  This is understandably big news, so you almost certainly didn&#8217;t read &#8230; <a href="https://possiblywrong.wordpress.com/2011/09/25/everything-is-possibly-wrong/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=possiblywrong.wordpress.com&amp;blog=13213908&amp;post=663&amp;subd=possiblywrong&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>But it usually isn&#8217;t.</p>
<p>This past week, scientists at CERN announced some very interesting results suggesting that neutrinos may be able to travel faster than the speed of light.  This is understandably big news, so you almost certainly didn&#8217;t read it here first.  I just have a few additional observations.</p>
<p>First, the initial paper is available on <a href="http://arxiv.org/abs/1109.4897">arXiv.org here</a>.  I am no particle physicist, but the basic story is not very complicated, and with my usual educational bent, I think this makes for an interesting and useful exercise even for young students&#8230; because it essentially boils down to distance = rate * time.  Scientists measured the time required for neutrinos to travel 731.278 km (about 454 miles) from a particle accelerator in Switzerland to a detector in Italy.  For those here in the U.S., imagine particles traveling underground between Baltimore, Maryland, and Martha&#8217;s Vineyard in Massachusetts&#8211; or for those reading back home, between Kansas City and Dallas, Texas.</p>
<p>Traveling at the speed of light (exactly 299,792,458 meters per second), the trip <em>should</em> take about 0.0024392808 second.  However, detection equipment on the receiving end observed the arrival of neutrinos about 60 nanoseconds earlier than this, suggesting that the particles were traveling <em>faster</em> than light.  That&#8217;s not much less time&#8230; but it&#8217;s a lot more speed.  It means that neutrinos would beat light to the finish line by just about 60 feet (one light-nanosecond is approximately one foot), but in doing so they exceed the speed of light by more than 16,000 miles per hour, about the speed of the Space Shuttle or the International Space Station in orbit around the Earth.  (This is a small <em>fractional</em> increase in speed, though, relative to the speed of light: just about 25 parts per million.)</p>
<p>As usual, I recommend reading the <a href="http://arxiv.org/abs/1109.4897">original source</a>.  Something that the &#8220;popular&#8221; press frequently seems to miss in this story is that it&#8217;s not <em>completely</em> new.  Neutrinos have behaved in funky ways before; the paper mentions and references similar observations back in 2007, although with admittedly less precise measurements.</p>
<p>Finally, it is the improved measurement technique and precision that are under much of the scrutiny in this most recent experiment.  As described in the paper, the scientists are not able to actually measure the times of departure and arrival of any <em>single</em> neutrino.  Instead, they collect timing information for multiple particles over a larger interval, and use statistical techniques to &#8220;shift&#8221; entire <em>distributions</em> of departure/arrival times until they &#8220;line up.&#8221;  Even for the non-physicist, there is some interesting mathematics involved.</p>
<p>As I said, I&#8217;m not a particle physicist.  But even watching from the sidelines, I find it exciting, and not a little inspiring, to watch science in action like this.  There is an enormous amount of attention, review, and criticism of these experiments, and that scrutiny is what science is all about.  The basic practice of science may not be changing, but I think the <em>speed</em> of science may very well be undergoing a radical increase even as we speak.  Similar to the <a href="http://en.wikipedia.org/wiki/Timothy_Gowers#Polymath_Project">polymath projects</a> started by Timothy Gowers, today&#8217;s technologically small world allows very large numbers of eyes and brains working on a problem, which can have the doubly-beneficial effect of &#8220;parallelizing&#8221; more exploratory investigation while at the same time more quickly recognizing and abandoning dead ends.</p>
<p>Do I think the result will be fundamental changes to our current understanding of physics?  My uneducated guess is that I doubt it.  It could turn out to be as simple as some unexpected systematic measurement error.  Or maybe there really is a new phenomenon here, but one that merely requires refinement, not complete rejection, of currently prevailing theories.</p>
<p>But I could be wrong.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/possiblywrong.wordpress.com/663/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/possiblywrong.wordpress.com/663/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/possiblywrong.wordpress.com/663/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/possiblywrong.wordpress.com/663/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/possiblywrong.wordpress.com/663/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/possiblywrong.wordpress.com/663/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/possiblywrong.wordpress.com/663/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/possiblywrong.wordpress.com/663/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/possiblywrong.wordpress.com/663/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/possiblywrong.wordpress.com/663/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/possiblywrong.wordpress.com/663/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/possiblywrong.wordpress.com/663/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/possiblywrong.wordpress.com/663/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/possiblywrong.wordpress.com/663/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=possiblywrong.wordpress.com&amp;blog=13213908&amp;post=663&amp;subd=possiblywrong&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://possiblywrong.wordpress.com/2011/09/25/everything-is-possibly-wrong/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/2b4d14aad4321acfc145fdd711235a77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">possiblywrong</media:title>
		</media:content>
	</item>
	</channel>
</rss>
