<?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/"
	>

<channel>
	<title>Life by Bits &#38; Numbers &#187; Brain Teasers &#8211; Solution</title>
	<atom:link href="http://www.inteism.com/category/brain-teasers-solution/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.inteism.com</link>
	<description></description>
	<lastBuildDate>Fri, 23 Jul 2010 16:48:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Missionaries and Cannibals Puzzle &#8212; Solution</title>
		<link>http://www.inteism.com/2009/01/missionaries-and-cannibals-puzzle-solution/</link>
		<comments>http://www.inteism.com/2009/01/missionaries-and-cannibals-puzzle-solution/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 20:10:25 +0000</pubDate>
		<dc:creator>Inteist</dc:creator>
				<category><![CDATA[Brain Teasers - Solution]]></category>
		<category><![CDATA[puzzles]]></category>

		<guid isPermaLink="false">http://www.inteism.com/?p=24</guid>
		<description><![CDATA[As I&#8217;ve mentioned in the problem statement, this problem is quite hard for humans and might be very easy for a machine to solve (with the right formalization of course). The reason is that this problem can contain infinitely many repeated states. If we don&#8217;t keep track of states we have been in, we could [...]


Related posts:<ol><li><a href='http://www.inteism.com/2009/01/missionaries-and-cannibals-puzzle/' rel='bookmark' title='Permanent Link: Missionaries and Cannibals Puzzle'>Missionaries and Cannibals Puzzle</a> <small>I&#8217;ve encountered some interesting problem which is famous mainly because...</small></li>
<li><a href='http://www.inteism.com/2009/01/jealous-husbands-problem-puzzle/' rel='bookmark' title='Permanent Link: Jealous Husbands Problem Puzzle'>Jealous Husbands Problem Puzzle</a> <small>This problem is similar to the missionaries and cannibals problem...</small></li>
<li><a href='http://www.inteism.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle/' rel='bookmark' title='Permanent Link: Getting 1/3 probability by tossing coins'>Getting 1/3 probability by tossing coins</a> <small>How can we choose one out of 3 christmass presents...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div align="right" style="float:right;padding:0px 0px 5px 5px;"><a name="fb_share" type="box_count" share_url="http://www.inteism.com/2009/01/missionaries-and-cannibals-puzzle-solution/"></a></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.inteism.com%2F2009%2F01%2Fmissionaries-and-cannibals-puzzle-solution%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.inteism.com%2F2009%2F01%2Fmissionaries-and-cannibals-puzzle-solution%2F&amp;source=inteist&amp;style=normal&amp;hashtags=puzzles" height="61" width="50" /><br />
			</a>
		</div>
<p>As I&#8217;ve mentioned in the <a href="http://www.inteism.com/2009/01/missionaries-and-cannibals-puzzle/">problem statement</a>, this problem is quite hard for  humans and might be very easy for a machine to solve (with the right  formalization of course). The reason is that this problem can contain infinitely  many repeated states. If we don&#8217;t keep track of states we have been in, we could  easily end up going in rounds with the same man in the boat for infinity. Thus,  we have to keep track of states we have been in, and do not repeat them, since  getting back to them, means that all the &#8220;progress&#8221; we made has put us back, and  therefore was useless.</p>
<p>Another thing to pay attention is that it really doesn&#8217;t matter which one of  the missionaries will we get into the boat first/second or third. This is also  true regarding the cannibals. In fact this small note saves us a lot of states  space, making this problem very simple indeed, when treated  properly.</p>
<p>Therefore, if you still want to try solve it, try drawing all possible  situations while not distinguishing any importance given to the order between  different missionaries and cannibals, and keeping track of repeated states as  well.</p>
<p><strong>Solution:</strong></p>
<p>MMMCCC  |   |</p>
<p>Missioner and a Cannibal go, Missioner comes back</p>
<p>MMMCC  |   |   MC      MMMCC   |   |  C</p>
<p>Two Cannibals go, one comes back</p>
<p>MMM  |   |   CCC    MMMC |    |  CC</p>
<p>Two missioners go, Missioner and a Cannibal come back</p>
<p>MC  |   |   CCMM     MMCC   |   |  CM</p>
<p>Two missioners go, the cannibal brings the boat back</p>
<p>CC  |   |   CMMM    CCC   |   |  MMM</p>
<p>Now all the cannibals can get to the other shore easily one by one: two go,  one comes back.</p>


<p>Related posts:<ol><li><a href='http://www.inteism.com/2009/01/missionaries-and-cannibals-puzzle/' rel='bookmark' title='Permanent Link: Missionaries and Cannibals Puzzle'>Missionaries and Cannibals Puzzle</a> <small>I&#8217;ve encountered some interesting problem which is famous mainly because...</small></li>
<li><a href='http://www.inteism.com/2009/01/jealous-husbands-problem-puzzle/' rel='bookmark' title='Permanent Link: Jealous Husbands Problem Puzzle'>Jealous Husbands Problem Puzzle</a> <small>This problem is similar to the missionaries and cannibals problem...</small></li>
<li><a href='http://www.inteism.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle/' rel='bookmark' title='Permanent Link: Getting 1/3 probability by tossing coins'>Getting 1/3 probability by tossing coins</a> <small>How can we choose one out of 3 christmass presents...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.inteism.com/2009/01/missionaries-and-cannibals-puzzle-solution/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting 1/3 probability by tossing coins &#8212; Solution</title>
		<link>http://www.inteism.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle-solution/</link>
		<comments>http://www.inteism.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle-solution/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 18:58:32 +0000</pubDate>
		<dc:creator>Inteist</dc:creator>
				<category><![CDATA[Brain Teasers - Solution]]></category>
		<category><![CDATA[puzzles]]></category>

		<guid isPermaLink="false">http://www.inteism.com/?p=6</guid>
		<description><![CDATA[Problem: How can we choose one out of 3 christmass presents with equal probabability?  Or in other words how to obtain 1/3 probability by using one unbiased coin ? Solution: 1. The coin is UNbiased: toss the coin twice. Let TH, HT and HH correspond to each of the presents. In case of HH &#8211; [...]


Related posts:<ol><li><a href='http://www.inteism.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle/' rel='bookmark' title='Permanent Link: Getting 1/3 probability by tossing coins'>Getting 1/3 probability by tossing coins</a> <small>How can we choose one out of 3 christmass presents...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div align="right" style="float:right;padding:0px 0px 5px 5px;"><a name="fb_share" type="box_count" share_url="http://www.inteism.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle-solution/"></a></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.inteism.com%2F2009%2F01%2Fgetting-one-third-probability-by-tossing-coins-puzzle-solution%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.inteism.com%2F2009%2F01%2Fgetting-one-third-probability-by-tossing-coins-puzzle-solution%2F&amp;source=inteist&amp;style=normal&amp;hashtags=puzzles" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>Problem:</strong></p>
<p><strong>How can we choose one out of 3 christmass presents with equal probabability?  Or in other words how to obtain 1/3 probability by using one unbiased coin ?</strong></p>
<p><strong>Solution:</strong></p>
<p>1. The coin is UNbiased: toss the coin twice. Let TH, HT and HH correspond to each of the presents. In case of HH &#8211; repeat from the beginning.</p>
<p>2. The coin is biased, then we notice that TH and HT would occur with equal probability but this will only give us 2 possible outcomes with equal probability and we need 3.  Then we would have to use 4 tosses which will give us 16 possible combinations. The question is which ones we should choose to represent the presents (or outcomes). The only condition is that the number of H and T should be the same to ensure equal probability for each outcome and thus selecting each present with the same probability. One option would be to assign HTHT, THTH and HTTH to the three choices, with other  13 possible 4-toss outcomes being rejected.</p>
<p><strong>Discussion:</strong></p>
<p>So the obvious problem is that we need some way to extrapolate tosses of a single coin to (possibly) arbitrary number of outcomes with equal probability to obtain each outcome.  So obviously we will need several tosses to match the number of outcomes we need. However we need to pay careful attention to the fact that the toss sequences we are using have the same combined probability such as HHTT and HTHT</p>


<p>Related posts:<ol><li><a href='http://www.inteism.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle/' rel='bookmark' title='Permanent Link: Getting 1/3 probability by tossing coins'>Getting 1/3 probability by tossing coins</a> <small>How can we choose one out of 3 christmass presents...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.inteism.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle-solution/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
