<?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; puzzles</title>
	<atom:link href="http://www.inteist.com/tag/puzzles/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.inteist.com</link>
	<description></description>
	<lastBuildDate>Fri, 03 Feb 2012 19:07:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Jealous Husbands Problem Puzzle</title>
		<link>http://www.inteist.com/2009/01/jealous-husbands-problem-puzzle/</link>
		<comments>http://www.inteist.com/2009/01/jealous-husbands-problem-puzzle/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 21:34:01 +0000</pubDate>
		<dc:creator>Inteist</dc:creator>
				<category><![CDATA[Brain Teasers]]></category>
		<category><![CDATA[puzzles]]></category>

		<guid isPermaLink="false">http://www.inteism.com/?p=41</guid>
		<description><![CDATA[This problem is similar to the missionaries and cannibals problem puzzle. One additional twist to the missionaries and cannibal problem in this problem is the fact that rather than being all the same, men and women have roles and although it appears to complicate the solution, it really does not. Problem: Three jealous husbands and [...]
Related posts:<ol>
<li><a href='http://www.inteist.com/2009/01/missionaries-and-cannibals-puzzle/' rel='bookmark' title='Missionaries and Cannibals Puzzle'>Missionaries and Cannibals Puzzle</a></li>
<li><a href='http://www.inteist.com/2009/01/missionaries-and-cannibals-puzzle-solution/' rel='bookmark' title='Missionaries and Cannibals Puzzle &#8212; Solution'>Missionaries and Cannibals Puzzle &#8212; Solution</a></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.inteist.com/2009/01/jealous-husbands-problem-puzzle/"></a></div><div class="google_plus_one" style="float: right; margin-left: 10px;"><g:plusone size="standard" count="false" url="http://www.inteist.com/2009/01/jealous-husbands-problem-puzzle/"></g:plusone></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.inteist.com%2F2009%2F01%2Fjealous-husbands-problem-puzzle%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.inteist.com%2F2009%2F01%2Fjealous-husbands-problem-puzzle%2F&amp;source=inteist&amp;style=normal&amp;hashtags=puzzles&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This problem is similar to the <a href="http://www.inteism.com/2009/01/missionaries-and-cannibals-puzzle/">missionaries and cannibals problem puzzle</a>. One additional twist to the missionaries and cannibal problem in this problem is the fact that rather than being all the same, men and women have roles and although it appears to complicate the solution, it really does not.</p>
<p><strong>Problem:</strong></p>
<p>Three jealous husbands and their wives need to cross a       river. They find a small boat that can contain no more than two       persons. Find the simplest schedule of crossings that will permit       all six people to cross the river so that none of the women shall       be left in company with any of the men, unless her husband is       present. It is assumed that all passengers on the boat unboard       before the next trip and at least one person has to be in the       boat for each crossing.</p>
<p>Related posts:<ol>
<li><a href='http://www.inteist.com/2009/01/missionaries-and-cannibals-puzzle/' rel='bookmark' title='Missionaries and Cannibals Puzzle'>Missionaries and Cannibals Puzzle</a></li>
<li><a href='http://www.inteist.com/2009/01/missionaries-and-cannibals-puzzle-solution/' rel='bookmark' title='Missionaries and Cannibals Puzzle &#8212; Solution'>Missionaries and Cannibals Puzzle &#8212; Solution</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.inteist.com/2009/01/jealous-husbands-problem-puzzle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Missionaries and Cannibals Puzzle &#8212; Solution</title>
		<link>http://www.inteist.com/2009/01/missionaries-and-cannibals-puzzle-solution/</link>
		<comments>http://www.inteist.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[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.inteist.com/2009/01/missionaries-and-cannibals-puzzle/' rel='bookmark' title='Missionaries and Cannibals Puzzle'>Missionaries and Cannibals Puzzle</a></li>
<li><a href='http://www.inteist.com/2009/01/jealous-husbands-problem-puzzle/' rel='bookmark' title='Jealous Husbands Problem Puzzle'>Jealous Husbands Problem Puzzle</a></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.inteist.com/2009/01/missionaries-and-cannibals-puzzle-solution/"></a></div><div class="google_plus_one" style="float: right; margin-left: 10px;"><g:plusone size="standard" count="false" url="http://www.inteist.com/2009/01/missionaries-and-cannibals-puzzle-solution/"></g:plusone></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.inteist.com%2F2009%2F01%2Fmissionaries-and-cannibals-puzzle-solution%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.inteist.com%2F2009%2F01%2Fmissionaries-and-cannibals-puzzle-solution%2F&amp;source=inteist&amp;style=normal&amp;hashtags=puzzles&amp;b=2" 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.inteist.com/2009/01/missionaries-and-cannibals-puzzle/' rel='bookmark' title='Missionaries and Cannibals Puzzle'>Missionaries and Cannibals Puzzle</a></li>
<li><a href='http://www.inteist.com/2009/01/jealous-husbands-problem-puzzle/' rel='bookmark' title='Jealous Husbands Problem Puzzle'>Jealous Husbands Problem Puzzle</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.inteist.com/2009/01/missionaries-and-cannibals-puzzle-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Missionaries and Cannibals Puzzle</title>
		<link>http://www.inteist.com/2009/01/missionaries-and-cannibals-puzzle/</link>
		<comments>http://www.inteist.com/2009/01/missionaries-and-cannibals-puzzle/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 20:07:48 +0000</pubDate>
		<dc:creator>Inteist</dc:creator>
				<category><![CDATA[Brain Teasers]]></category>
		<category><![CDATA[puzzles]]></category>

		<guid isPermaLink="false">http://www.inteism.com/?p=22</guid>
		<description><![CDATA[I&#8217;ve encountered some interesting problem which is famous mainly because it has much to do with AI (Artificial Intelligence) development. The problem is called &#8220;Missionaries and Cannibals&#8221;. The description is: &#8220;Three missionaries and three cannibals come to a river. A rowboat that seats two is available. If the cannibals ever outnumber the missionaries on either [...]
Related posts:<ol>
<li><a href='http://www.inteist.com/2009/01/missionaries-and-cannibals-puzzle-solution/' rel='bookmark' title='Missionaries and Cannibals Puzzle &#8212; Solution'>Missionaries and Cannibals Puzzle &#8212; Solution</a></li>
<li><a href='http://www.inteist.com/2009/01/jealous-husbands-problem-puzzle/' rel='bookmark' title='Jealous Husbands Problem Puzzle'>Jealous Husbands Problem Puzzle</a></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.inteist.com/2009/01/missionaries-and-cannibals-puzzle/"></a></div><div class="google_plus_one" style="float: right; margin-left: 10px;"><g:plusone size="standard" count="false" url="http://www.inteist.com/2009/01/missionaries-and-cannibals-puzzle/"></g:plusone></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.inteist.com%2F2009%2F01%2Fmissionaries-and-cannibals-puzzle%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.inteist.com%2F2009%2F01%2Fmissionaries-and-cannibals-puzzle%2F&amp;source=inteist&amp;style=normal&amp;hashtags=puzzles&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I&#8217;ve encountered some interesting problem which is famous mainly because it  has much to do with AI (Artificial Intelligence)  development. The problem is called &#8220;Missionaries and Cannibals&#8221;. The description  is:</p>
<p><em>&#8220;Three missionaries and three cannibals come  to a river. A rowboat that seats two is available. If the  cannibals</em> <em>ever outnumber</em> <em>the missionaries on either bank of the river, the  missionaries will be eaten. How shall they cross the river?&#8221;</em></p>
<p>The following statement  &#8211; &#8220;<em>If the cannibals <strong>ever</strong> outnumber</em> &#8221; means that cannibals can&#8217;t  outnumber missionaries while counting anyone in moored boat. (otherwise the  problem is simple)</p>
<p>The problem has an elegant and pretty easy solution, yet it is usually hard  to humans because humans don&#8217;t do a formalization of the problem which leads to  many repeated states. This issue is mainly why this problem is popular. Amarel  (1971) considered several representations of the problem and discussed criteria  whereby the following representation is preferred for purposes of AI and why  this problem is hard for humans.</p>
<p style="text-align: center;"><a href="http://www.inteism.com/2009/01/missionaries-and-cannibals-puzzle-solution">Solution</a></p>
<p>Related posts:<ol>
<li><a href='http://www.inteist.com/2009/01/missionaries-and-cannibals-puzzle-solution/' rel='bookmark' title='Missionaries and Cannibals Puzzle &#8212; Solution'>Missionaries and Cannibals Puzzle &#8212; Solution</a></li>
<li><a href='http://www.inteist.com/2009/01/jealous-husbands-problem-puzzle/' rel='bookmark' title='Jealous Husbands Problem Puzzle'>Jealous Husbands Problem Puzzle</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.inteist.com/2009/01/missionaries-and-cannibals-puzzle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting 1/3 probability by tossing coins &#8212; Solution</title>
		<link>http://www.inteist.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle-solution/</link>
		<comments>http://www.inteist.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[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.inteist.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle/' rel='bookmark' title='Getting 1/3 probability by tossing coins'>Getting 1/3 probability by tossing coins</a></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.inteist.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle-solution/"></a></div><div class="google_plus_one" style="float: right; margin-left: 10px;"><g:plusone size="standard" count="false" url="http://www.inteist.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle-solution/"></g:plusone></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.inteist.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.inteist.com%2F2009%2F01%2Fgetting-one-third-probability-by-tossing-coins-puzzle-solution%2F&amp;source=inteist&amp;style=normal&amp;hashtags=puzzles&amp;b=2" 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.inteist.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle/' rel='bookmark' title='Getting 1/3 probability by tossing coins'>Getting 1/3 probability by tossing coins</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.inteist.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting 1/3 probability by tossing coins</title>
		<link>http://www.inteist.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle/</link>
		<comments>http://www.inteist.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 01:39:15 +0000</pubDate>
		<dc:creator>Inteist</dc:creator>
				<category><![CDATA[Brain Teasers]]></category>
		<category><![CDATA[puzzles]]></category>

		<guid isPermaLink="false">http://www.inteism.com/?p=3</guid>
		<description><![CDATA[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 ? Solve the previous problem if the coin is biased and the bias is uknown. Solution Related posts: Getting 1/3 probability by tossing coins &#8212; Solution Missionaries and [...]
Related posts:<ol>
<li><a href='http://www.inteist.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle-solution/' rel='bookmark' title='Getting 1/3 probability by tossing coins &#8212; Solution'>Getting 1/3 probability by tossing coins &#8212; Solution</a></li>
<li><a href='http://www.inteist.com/2009/01/missionaries-and-cannibals-puzzle/' rel='bookmark' title='Missionaries and Cannibals Puzzle'>Missionaries and Cannibals Puzzle</a></li>
<li><a href='http://www.inteist.com/2009/01/missionaries-and-cannibals-puzzle-solution/' rel='bookmark' title='Missionaries and Cannibals Puzzle &#8212; Solution'>Missionaries and Cannibals Puzzle &#8212; Solution</a></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.inteist.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle/"></a></div><div class="google_plus_one" style="float: right; margin-left: 10px;"><g:plusone size="standard" count="false" url="http://www.inteist.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle/"></g:plusone></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.inteist.com%2F2009%2F01%2Fgetting-one-third-probability-by-tossing-coins-puzzle%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.inteist.com%2F2009%2F01%2Fgetting-one-third-probability-by-tossing-coins-puzzle%2F&amp;source=inteist&amp;style=normal&amp;hashtags=puzzles&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<ol>
<li>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 ?</li>
<li>Solve the previous problem if the coin is biased and the bias is uknown.</li>
</ol>
<p style="text-align: center;"><a href="http://www.inteism.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle-solution/" target="_self">Solution</a></p>
<p>Related posts:<ol>
<li><a href='http://www.inteist.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle-solution/' rel='bookmark' title='Getting 1/3 probability by tossing coins &#8212; Solution'>Getting 1/3 probability by tossing coins &#8212; Solution</a></li>
<li><a href='http://www.inteist.com/2009/01/missionaries-and-cannibals-puzzle/' rel='bookmark' title='Missionaries and Cannibals Puzzle'>Missionaries and Cannibals Puzzle</a></li>
<li><a href='http://www.inteist.com/2009/01/missionaries-and-cannibals-puzzle-solution/' rel='bookmark' title='Missionaries and Cannibals Puzzle &#8212; Solution'>Missionaries and Cannibals Puzzle &#8212; Solution</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.inteist.com/2009/01/getting-one-third-probability-by-tossing-coins-puzzle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

