<?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>Yaniv's Gems</title>
	<atom:link href="http://yaniv.leviathanonline.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://yaniv.leviathanonline.com/blog</link>
	<description>Strain your Brain</description>
	<lastBuildDate>Tue, 31 Aug 2010 18:10:17 +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>Prisoners with Bit Sequences</title>
		<link>http://yaniv.leviathanonline.com/blog/riddles/prisoners-with-bit-sequences/</link>
		<comments>http://yaniv.leviathanonline.com/blog/riddles/prisoners-with-bit-sequences/#comments</comments>
		<pubDate>Fri, 28 May 2010 15:45:55 +0000</pubDate>
		<dc:creator>yaniv</dc:creator>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Riddles]]></category>

		<guid isPermaLink="false">http://yaniv.leviathanonline.com/blog/?p=185</guid>
		<description><![CDATA[This is a hard riddle &#8211; it took me a couple of days (wall-time) to solve, but it was definitely worth it. Be warned &#8211; a certain mathematical maturity is needed&#8230; There are three prisoners and a guard. The guard has an infinite sequence that is either all 1&#8242;s (e.g. 1111111111&#8230;) or it starts with [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://leviathanonline.com/wordpress/wp-content/uploads/2007/06/veryhard.gif"><img class="size-full wp-image-55 alignleft" title="veryhard.gif" src="http://leviathanonline.com/wordpress/wp-content/uploads/2007/06/veryhard.gif" alt="" width="200" height="200" /></a></p>
<p><strong>This is a hard riddle &#8211; it took me a couple of days (wall-time) to solve, but it was definitely worth it. Be warned &#8211; a certain mathematical maturity is needed&#8230;</strong></p>
<p>There are three prisoners and a guard. The guard has an infinite sequence that is either all 1&#8242;s (e.g. 1111111111&#8230;) or it starts with a finite number of 1&#8242;s and eventually turns into 2&#8242;s (e.g. 1112222222&#8230;). The guard creates 3 bit sequences (i.e. composed entirely of 0&#8242;s and 1&#8242;s) such that the sum of the i&#8217;th bit in the 3 sequences is equal to the i&#8217;th element in his sequence (1 or 2).</p>
<p>He then gives each of the 3 prisoners one of the 3 bit sequences. Each prisoner sees only his own sequence and has to guess whether the guard&#8217;s sequence consists only of 1&#8242;s or whether it turns into 2&#8242;s eventually. Devise a method that will make sure the majority of the prisoners (i.e. at least 2) guess correctly.</p>
<p><span style="color: #0000ff;">Thanks Haran for giving me this cool riddle!</span></p>
]]></content:encoded>
			<wfw:commentRss>http://yaniv.leviathanonline.com/blog/riddles/prisoners-with-bit-sequences/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>The Better Half</title>
		<link>http://yaniv.leviathanonline.com/blog/riddles/the-better-half/</link>
		<comments>http://yaniv.leviathanonline.com/blog/riddles/the-better-half/#comments</comments>
		<pubDate>Wed, 19 May 2010 19:34:33 +0000</pubDate>
		<dc:creator>yaniv</dc:creator>
				<category><![CDATA[Comp]]></category>
		<category><![CDATA[Riddles]]></category>

		<guid isPermaLink="false">http://yaniv.leviathanonline.com/blog/?p=178</guid>
		<description><![CDATA[A cute and easy algorithmic riddle. You have an array of N bit strings each of length M. You know that there is at least one element that appears more than N/8 times in the array. Using O(M+log(N)) memory and O(NM) time, find such an element. An Easier Version Well, its actually almost exactly the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://leviathanonline.com/wordpress/wp-content/uploads/2007/06/easyriddle.gif"><img class="size-full wp-image-54 alignleft" title="easyriddle.gif" src="http://leviathanonline.com/wordpress/wp-content/uploads/2007/06/easyriddle.gif" alt="" width="200" height="200" /></a>A cute and easy algorithmic riddle.</p>
<p>You have an array of N bit strings each of length M. You know that there is at least one element that appears more than N/8 times in the array. Using O(M+log(N)) memory and O(NM) time, find such an element.</p>
<p><span style="text-decoration: underline;"><strong>An Easier Version<br />
</strong></span></p>
<p>Well, its actually almost exactly the same, but solve the above riddle in case there is an element that appears more than N/2 times in the array. I managed to find 3 distinct solutions to this easier variation, but only one of which generalizes easily.</p>
<p><span style="color: #0000ff;">Thanks Nemo for giving me this riddle!</span></p>
]]></content:encoded>
			<wfw:commentRss>http://yaniv.leviathanonline.com/blog/riddles/the-better-half/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Reverse &amp; Clean</title>
		<link>http://yaniv.leviathanonline.com/blog/riddles/reverse-clean/</link>
		<comments>http://yaniv.leviathanonline.com/blog/riddles/reverse-clean/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 20:48:04 +0000</pubDate>
		<dc:creator>yaniv</dc:creator>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Riddles]]></category>

		<guid isPermaLink="false">http://yaniv.leviathanonline.com/blog/riddles/reverse-clean/</guid>
		<description><![CDATA[The game of Reverse &#38; Clean is a one player game, played on an N by M board, filled with Reversi pieces. Each Reversi piece has a black side and a white side. The game starts with all pieces showing their white side, except for the piece in the lower right corner, which shows its [...]]]></description>
			<content:encoded><![CDATA[<p>The game of Reverse &amp; Clean is a one player game, played on an N by M board, filled with Reversi pieces. Each Reversi piece has a black side and a white side. The game starts with all pieces showing their white side, except for the piece in the lower right corner, which shows its black side. See the figure for a 3 by 3 example.<br />
<span id="more-174"></span></p>
<p><img src="http://leviathanonline.com/wordpress/wp-content/uploads/2010/04/reversi1.png" title="reversi1.png" alt="reversi1.png" /></p>
<p>In each turn of the game, you remove one of the black pieces and flip all of its (remaining) neighbours (the pieces up, down, left and right of it). The figures below demonstrate 2 possible first moves (note that the very first move of the game is always to remove the bottom right piece, which is the only black piece).</p>
<p><img src="http://leviathanonline.com/wordpress/wp-content/uploads/2010/04/reversi2.png" title="reversi2.png" alt="reversi2.png" /> <img src="http://leviathanonline.com/wordpress/wp-content/uploads/2010/04/reversi3.png" alt="reversi3.png" /></p>
<p>The goal of the game is to clean the board (i.e. remove all pieces). Note that if the board is 1 by N, you can always win, while if the board is 2 by 2, winning is impossible (make sure you see why).</p>
<p><em><strong>For what numbers, N and M, is a win possible?</strong></em></p>
<p>Extra Credit: What about 3-dimensions? D-dimensions?</p>
<p class="sidenote">Thanks to Liron Raz for giving me this one.</p>
]]></content:encoded>
			<wfw:commentRss>http://yaniv.leviathanonline.com/blog/riddles/reverse-clean/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Rabbit Season</title>
		<link>http://yaniv.leviathanonline.com/blog/riddles/rabbit-season/</link>
		<comments>http://yaniv.leviathanonline.com/blog/riddles/rabbit-season/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 09:30:56 +0000</pubDate>
		<dc:creator>yaniv</dc:creator>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Riddles]]></category>

		<guid isPermaLink="false">http://yaniv.leviathanonline.com/blog/riddles/rabbit-season/</guid>
		<description><![CDATA[There are 10 cells in a line. A transparent rabbit is in one of them. You have a shotgun, and obviously you want to shoot the rabbit. If you hit the cell with the rabbit, you kill him (and win). Otherwise, if you shoot an empty cell, the rabbit hears the shot, gets scared of [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://leviathanonline.com/wordpress/wp-content/uploads/2007/06/easyriddle.gif" title="easyriddle.gif" alt="easyriddle.gif" align="left" /><img src="http://leviathanonline.com/wordpress/wp-content/uploads/2010/03/rabbit1.png" title="rabbit" alt="rabbit" align="right" />There are 10 cells in a line. A transparent rabbit is in one of them. You have a shotgun, and obviously you want to shoot the rabbit.</p>
<p>If you hit the cell with the rabbit, you kill him (and win). Otherwise, if you shoot an empty cell, the rabbit hears the shot, gets scared of the noise and jumps one cell to the right or one cell to the left. In case the rabbit is in the right-most cell, it can only jump to the left (and similarly, if the rabbit is in the left-most cell, it jumps to the right).</p>
<p>Can you kill the rabbit? If so, what is the minimum number of shots needed to guarantee a kill?</p>
<p><span id="more-170"></span></p>
<p><u><strong>Extra Credit</strong></u></p>
<p><img src="http://leviathanonline.com/wordpress/wp-content/uploads/2007/06/spoiler.gif" title="spoiler.gif" alt="spoiler.gif" align="left" /></p>
<p><em><strong>Spoiler Warning &#8211; read after solving the riddle above!</strong></em></p>
<p>Instead of considering the cells in a row, the riddle can be generalized to a graph.</p>
<p>If the graph has cycles, no solution exists (make sure you see why!).</p>
<p>What happens if the graph is a general tree?</p>
]]></content:encoded>
			<wfw:commentRss>http://yaniv.leviathanonline.com/blog/riddles/rabbit-season/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Fat Aunts</title>
		<link>http://yaniv.leviathanonline.com/blog/riddles/fat-aunts/</link>
		<comments>http://yaniv.leviathanonline.com/blog/riddles/fat-aunts/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 22:16:40 +0000</pubDate>
		<dc:creator>yaniv</dc:creator>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Riddles]]></category>

		<guid isPermaLink="false">http://yaniv.leviathanonline.com/blog/riddles/fat-aunts/</guid>
		<description><![CDATA[Two aunts are living each in her own (0-dimensional) house. There are two non-intersecting (1-dimensional) roads between the houses. Last year, both aunts were doing a lot of exercise, and so they were slim (0-dimensional). They managed to walk together from House 1 to House 2, taking different roads, while each was holding one end [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://leviathanonline.com/wordpress/wp-content/uploads/2010/01/houses2.png" title="Houses" alt="Houses" align="left" />Two aunts are living each in her own (0-dimensional) house. There are two non-intersecting (1-dimensional) roads between the houses.</p>
<p>Last year, both aunts were doing a lot of exercise, and so they were slim (0-dimensional). They managed to walk together from House 1 to House 2, taking different roads, while each was holding one end of a rope of length less than L.</p>
<p>This year, they gained weight, and each became a sphere of radius L/2. One aunt is in House 1 and the other is in House 2. Can they exchange houses without bumping into each other (their centers must always remain on the roads)?</p>
]]></content:encoded>
			<wfw:commentRss>http://yaniv.leviathanonline.com/blog/riddles/fat-aunts/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Really equal? Naturally!</title>
		<link>http://yaniv.leviathanonline.com/blog/riddles/really-equal-naturally/</link>
		<comments>http://yaniv.leviathanonline.com/blog/riddles/really-equal-naturally/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 11:27:15 +0000</pubDate>
		<dc:creator>yaniv</dc:creator>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Riddles]]></category>

		<guid isPermaLink="false">http://yaniv.leviathanonline.com/blog/riddles/really-equal-naturally/</guid>
		<description><![CDATA[You have a set of 2N+1 natural numbers, with the following property: if you remove any one element, you can partition the remaining 2N elements into two sets A and B, each of size N, such that the sum of the N numbers in set A equals the sum of the N numbers in set [...]]]></description>
			<content:encoded><![CDATA[<p>You have a set of 2N+1 natural numbers, with the following property: if you remove any one element, you can partition the remaining 2N elements into two sets A and B, each of size N, such that the sum of the N numbers in set A equals the sum of the N numbers in set B. Prove that all the numbers in the original set are equal.</p>
<p>Try to solve the riddle in the more general case, where the numbers are not necessarily natural, but arbitrary reals (some knowledge of algebra is helpful here).</p>
]]></content:encoded>
			<wfw:commentRss>http://yaniv.leviathanonline.com/blog/riddles/really-equal-naturally/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Il Buono, il Brutto, il Cattivo</title>
		<link>http://yaniv.leviathanonline.com/blog/riddles/il-buono-il-brutto-il-cattivo/</link>
		<comments>http://yaniv.leviathanonline.com/blog/riddles/il-buono-il-brutto-il-cattivo/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 20:30:14 +0000</pubDate>
		<dc:creator>yaniv</dc:creator>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Riddles]]></category>

		<guid isPermaLink="false">http://yaniv.leviathanonline.com/blog/riddles/il-buono-il-brutto-il-cattivo/</guid>
		<description><![CDATA[For inspirational music, click here. Il Buono (nice and easy) Prove that in a subset of size n+1 of the set {1,2,&#8230;,2n} there are two numbers such that one divides the other. Il Cattivo (beautiful and hard) Prove that in a sequence of r*s+1 distinct numbers, there is either a monotonically increasing sub-sequence of length [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://leviathanonline.com/wordpress/wp-content/uploads/2009/07/goodbadugly.jpg" title="Good Bad Ugly" alt="Good Bad Ugly" align="left" /><em>For inspirational music, <a href="http://www.youtube.com/watch?v=4aniv65Mw8I&amp;feature=related" target="_blank">click here</a>. </em></p>
<p><u><strong>Il Buono</strong></u> (nice and easy)</p>
<p>Prove that in a subset of size n+1 of the set {1,2,&#8230;,2n} there are two numbers such that one divides the other.</p>
<p><u><strong>Il Cattivo</strong></u> (beautiful and hard)</p>
<p>Prove that in a sequence of r*s+1 distinct numbers, there is either a monotonically increasing sub-sequence of length r+1 or a monotonically decreasing sub-sequence of length s+1.</p>
<p><u><strong>Il Brutto</strong></u> (just easy)</p>
<p>Prove that in a subset of size n+1 of the set {1,2,&#8230;,2n} there are two relatively prime numbers (i.e. numbers whose gcd is 1).</p>
<p><span id="more-164"></span></p>
<p><u><strong>Il Non Collegato</strong></u> (another easy one)</p>
<p>Prove that a degree 7 polynomial with integer coefficients, that receives the values +1 or -1 on 7 integer points is irreducible over the integers.</p>
<p><em>Unusually, I decided to omit the second page, so post your solution related comments below.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://yaniv.leviathanonline.com/blog/riddles/il-buono-il-brutto-il-cattivo/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Monty Hall Revised</title>
		<link>http://yaniv.leviathanonline.com/blog/riddles/monty-hall-revised/</link>
		<comments>http://yaniv.leviathanonline.com/blog/riddles/monty-hall-revised/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 10:31:44 +0000</pubDate>
		<dc:creator>yaniv</dc:creator>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Riddles]]></category>

		<guid isPermaLink="false">http://yaniv.leviathanonline.com/blog/riddles/monty-hall-revised/</guid>
		<description><![CDATA[This riddle is my take on the Monty Hall problem. If you know the original version, this one should be very easy for you. You are watching the TV series &#8220;Lets Make a Deal&#8221;. You are very excited as you know your friend Heidi is participating today. You watch attentively throughout the show, only to find [...]]]></description>
			<content:encoded><![CDATA[<p><em>This riddle is my take on the Monty Hall problem. If you know the original version, this one should be very easy for you.</em></p>
<p>You are watching the TV series &#8220;Lets Make a Deal&#8221;.</p>
<p><img src="http://leviathanonline.com/wordpress/wp-content/uploads/2007/07/lets_make_a_deal.gif" alt="lets_make_a_deal.gif" /></p>
<p><span id="more-91"></span></p>
<p>You are very excited as you know your friend Heidi is participating today. You watch attentively throughout the show, only to find out that it ends without Heidi ever appearing in it.</p>
<p>You call Heidi, several times during the following day, but you keep getting her answering machine. Maybe something happened to her?</p>
<p>You recall the <u><em>Rules of the Show</em></u>:</p>
<p>The host presents to each candidate three closed doors. Behind one of these doors hides a big prize, behind the other two there is an empty bucket. The candidate chooses one of the doors (this choice is random as he has no information whatsoever on the location of the prize). Then the host opens one of the other doors <em>behind which there is no prize</em>. Then the candidate is given the option to remain with his initial choice or to switch doors and choose the other closed door. Then the remaining doors are opened, and the candidate is awarded whatever is behind the door finally chose. The goal of the candidate is (obviously) to choose the door with the prize.</p>
<p>Pondering about the rules, you develop the following theory:</p>
<p>Maybe the host does not know in advance which of the doors contains the prize. In that case, if the host happens to choose to reveal the door with the prize (thus ruining the show) the candidate is killed (finally, some proper riddle scenario) and his scene is cut-out during the editing of the show.</p>
<p>Maybe that is what happened to Heidi?</p>
<p><strong>Assuming you have <em>a lot</em> of episodes (as many as you need), how can your theory be ruled out or strengthened?</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://yaniv.leviathanonline.com/blog/riddles/monty-hall-revised/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Hats in a Line</title>
		<link>http://yaniv.leviathanonline.com/blog/riddles/hats-in-a-line/</link>
		<comments>http://yaniv.leviathanonline.com/blog/riddles/hats-in-a-line/#comments</comments>
		<pubDate>Sun, 16 Nov 2008 00:02:12 +0000</pubDate>
		<dc:creator>yaniv</dc:creator>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Riddles]]></category>

		<guid isPermaLink="false">http://yaniv.leviathanonline.com/blog/riddles/hats-in-a-line/</guid>
		<description><![CDATA[This riddle is a very cool extension of a well known (and easy) riddle, involving people with hats waiting in a line. So, lets begin with the original: The Original Riddle 100 men are standing in a line, such that each of them sees all those that are in-front of him (so the last man sees the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://leviathanonline.com/wordpress/wp-content/uploads/2008/05/hats_small2.jpg" alt="hats_small2.jpg" title="hats_small2.jpg" />This riddle is a very cool extension of a well known (and easy) riddle, involving people with hats waiting in a line.</p>
<p>So, lets begin with the original:</p>
<p><span id="more-160"></span></p>
<p><strong><u>The Original Riddle</u></strong></p>
<p>100 men are standing in a line, such that each of them sees all those that are in-front of him (so the last man sees the 99 others, etc.). Each guy has a hat on his head colored either black or white. Each of the men guesses the color of his own hat, out-loud. The guy standing last (the one that sees all the other ones) guesses first, then the guy in-front of him, etc. The men&#8217;s task is to make sure no more than one of them is wrong.</p>
<p>Just to make things explicit &#8211; the men are allowed to agree upon an algorithm before actually being given the hats, but once the task starts they cannot communicate in any way other than the fact that each of them hears the guess of the guys standing behind him.</p>
<p>Also, to conform to the universal standards of riddles, note that should more than one man be mistaken, they will all be brutally killed.</p>
<p>If you do not know this riddle yet, take a minute to think about its solution before reading on.</p>
<p><u><strong>The Solution of the Basic Riddle</strong></u></p>
<p>I give here the solution of the basic riddle so that there are no misunderstandings regarding the much more interesting extension. It goes like this &#8211; The last man (the one that guesses first) sacrifices himself (with a probability of 0.5). He regards each black hat as a 1 and each white hat as a 0. He then guesses out-loud that he has a black hat if the sum of all the hats of the other people is odd, and guesses white otherwise. The other people can all guess correctly (make sure that you understand why).</p>
<p><strong><u>Some Trivial Extensions</u></strong></p>
<p>Obviously the numbers 100 and 2 (the number of possible hat colors) in the original riddle are completely arbitrary. If m,n are two natural numbers then the riddle with m men and n possible hat colors is a trivial generalization of the previous result.</p>
<p>Now, note that if we let n, the number of possible hat colors, be equal to infinity (well, aleph 0, the cardinality of the set of natural numbers) then again we have a trivial generalization (make sure you see why).</p>
<p><strong><u>The Real Deal</u></strong></p>
<p>Now the extension of the riddle we are interested in consists of letting m, the number of people, be equal to aleph 0. For simplicity, lets assume that n equals two (the hats are either black or white).</p>
<p>Is the riddle still solvable? I.e. can the men devise an algorithm such that there will be only one mistake?</p>
<p>As usual, post solution related comments to the second page.</p>
]]></content:encoded>
			<wfw:commentRss>http://yaniv.leviathanonline.com/blog/riddles/hats-in-a-line/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>The Difference Between Area and Volume &#8211; Part I</title>
		<link>http://yaniv.leviathanonline.com/blog/math/the-difference-between-area-and-volume-part-i/</link>
		<comments>http://yaniv.leviathanonline.com/blog/math/the-difference-between-area-and-volume-part-i/#comments</comments>
		<pubDate>Fri, 16 May 2008 13:11:44 +0000</pubDate>
		<dc:creator>yaniv</dc:creator>
				<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://yaniv.leviathanonline.com/blog/math/the-difference-between-area-and-volume-part-i/</guid>
		<description><![CDATA[I haven&#8217;t written new posts for a while now, as I have been very busy lately. I think this is a very interesting post and I hope it will make up for the lack of updates. I also want to take this opportunity to thank all of you for posting lots of interesting comments and for sending me many ideas and riddles, thank you! [...]]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t written new posts for a while now, as I have been very busy lately.</p>
<p>I think this is a very interesting post and I hope it will make up for the lack of updates. I also want to take this opportunity to thank all of you for posting lots of interesting comments and for sending me many ideas and riddles, thank you!</p>
<p><strong><em>In this post (and its sequel) I will describe Hilbert&#8217;s 3rd problem and show how it is solved. I based the posts mainly on a lecture by Prof. David Gilat.</em></strong></p>
<p><span id="more-156"></span></p>
<p>Lets begin by considering a polygon in the Euclidean plane. Here is an example of such a polygon:</p>
<p><img src="http://leviathanonline.com/wordpress/wp-content/uploads/2008/01/polygon.gif" alt="polygon.gif" /></p>
<p>We want to devise a method for somehow &#8220;measuring&#8221; the area of this and similar polygons.</p>
<p>In order to do this, we begin by defining the area of a rectangle that is parallel to the coordinate axes as the product of its horizontal side by its vertical side.</p>
<p>We now define the area of a polygon to be the infimum of the sum of all the areas of sets of rectangles that constitute a covering of the polygon. An example of such a covering is depicted here: </p>
<p><img src="http://leviathanonline.com/wordpress/wp-content/uploads/2008/01/polygon_covering.gif" alt="polygon_covering.gif" /></p>
<p>This is the Lebesgue measure of the polygon. This area happens to have some very desirable properties:</p>
<ul>
<li>It is invariant to translations (i.e. a polygon&#8217;s area will remain the same if it is moved to a different location in the plane).</li>
<li>It is invariant to rotations (i.e. a polygon&#8217;s area will remain the same if it is rotated).</li>
<li>It is invariant to reflections (i.e. a  polygon&#8217;s area will remain the same if it is reflected over any straight line).</li>
<li>It has the finite-additivity property (explained below).</li>
</ul>
<p>I will not prove these properties here as it is very easy and somewhat tedious to do so.</p>
<p>Lets focus on the last property, namely finite-additivity. Finite-additivity means that if we take two polygons that are disjoint (actually, that have disjoint interior) and regard their union as one new polygon, then the area of the new polygon will be equal to the sum of the areas of the two original polygons.</p>
<p>Lets call two polygons, P and Q, <u><em>congruent in parts</em></u>, if we can divide P to polygons p1,&#8230;,pn and Q to polygons q1,&#8230;,qn such that pi can be obtained from qi by a finite number of translations, rotations and reflections.</p>
<p>The properties of area listed above, give the following important (though a little obvious) conclusion:</p>
<p><strong><u>Theorem 1</u></strong>: Two polygons P and Q that are congruent in parts have the same area.</p>
<p>It suffices, by finite-additivity, to show that the areas of the polygons pi and qi are the same for all i. But by the invariance of the area under rotations, translations and reflections, this is obvious.</p>
<p>Now an interesting question arises: Given two polygons P and Q that have an equal area, are they congruent in parts?</p>
<p>The question can be given an affirmative answer. Lets give an outline of the proof:</p>
<ol>
<li>Every polygon can be divided to finitely many triangles. This is obvious in the case of a convex polygon. In the case of a concave polygon, select any diagonal that lies completely inside the polygon. This diagonal divides the polygon into two polygons each with fewer sides than the original. By induction we can divide the polygon into finitely many triangles. It still remains to be shown that we can always find a diagonal that lies completely inside our polygon, but that is not hard (I will leave this as an exercise to the reader <img src='http://leviathanonline.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  ).</li>
<li>Every triangle is congruent in parts to a rectangle (see illustration below).</li>
<li>Every rectangle is congruent in parts to a square.</li>
<li>Two squares are congruent in parts to a square whose area is the sum of their areas.</li>
</ol>
<p>An illustration showing that a triangle is congruent in parts to a rectangle follows:<img src="http://leviathanonline.com/wordpress/wp-content/uploads/2008/01/triangle_rectangle.gif" alt="triangle_rectangle.gif" /></p>
<p>We have shown that every polygon is congruent in parts to a square of the same area. We thus have the inverse of Theorem 1, namely,</p>
<p><strong><u>Theorem 2</u></strong>: Two polygons that have the same area are congruent in parts.</p>
<p>On to three dimensions. We define a polyhedron&#8217;s volume (a polyhedron is the three dimensional analogue of a polygon), it&#8217;s Lebesgue measure, in a completely analogous way to the two dimensional Lebesgue measure. Given a box whose facets are parallel to the coordinate plane we define its volume to be the product of three of its perpendicular sides. Given any polyhedron we now define its volume as the infimum of the sum of the volumes of all the boxes in a covering of the polyhedron, where the infimum is taken over all the countable coverings of the polyhedron by boxes with facets parallel to the coordinate planes.</p>
<p>We say that two polyhedrons are congruent in parts if we can divide them into polyhedrons p1,&#8230;,pn and q1,&#8230;,qn such that the pi&#8217;s have disjoint interiors (and similarly for the qi&#8217;s) and such that qi can be obtained from pi by translations, rotations and reflections (around planes).</p>
<p>The three dimensional Lebesgue measure has the same properties as the two dimensional Lebesgue measure mentioned above. Thus Theorem 1 can be generalized to:</p>
<p><strong><u>Theorem 3</u></strong>: Two polyhedrons that are congruent in parts have the same volume.</p>
<p>It was conjectured by Gauss that Theorem 3&#8242;s inverse (the generalization of Theorem 2 to three dimensions) does not hold. This question later became known as Hilbert&#8217;s Third Problem (see <a href="http://en.wikipedia.org/wiki/Hilbert's_problems">Hilbert&#8217;s Problems</a>).</p>
<p>Lets state it again, for clarity:</p>
<p><strong><u>Hilbert&#8217;s Third Problem</u></strong>: Are two polyhedrons that have the same volume necessarily congruent in parts?</p>
<p>One might try to answer the question affirmatively by employing a method similar to the one we used for Theorem 2. I.e. find a &#8220;generic&#8221; 3D polyhedron (the 3D analogue of the 2D triangle) and divide the polyhedrons to finitely many such &#8220;generic&#8221; polyhedrons. The problem is that, contrary to the 2D triangle, the existence of such a &#8220;generic&#8221; polyhedron is not obvious.</p>
<p>The problem was indeed given a negative answer by Hilbert&#8217;s student Max Dehn. Dehn managed to construct a function D of polyhedrons that remained invariant under congruence in parts (i.e. two polyhedrons that are congruent in parts produce the same value of D). He managed to show that the values of D on the regular tetrahedron and on the cube are different even if they have the same volume.</p>
<p>Dehn&#8217;s invariant, D, is defined as follows:</p>
<p>D(P) = Σl(m)f(q(m))</p>
<p>Where the Σ is taken over all edges m of the polyhedron, l(m) denotes the length of the edge, q(m) denotes the angle between the two planes formed by the facets m connects, and finally f:R-&gt;Q is a linear transformation (from the real line into the field of rational numbers, where R is regraded as an infinite dimensional vector space over Q) with the following properties:</p>
<ol>
<li>f(1) = 0</li>
<li>f(qx) = qf(x), q in Q, x in R</li>
<li>f(x+y) = f(x) + f(y)</li>
<li>f(pi) = 0</li>
<li>f(x) != 0, if x is not linearly dependent on pi and 1 (again, regarding R as a vector space over Q).</li>
</ol>
<p>Cautious readers might notice that the existence of such a function depends on the axiom of choice (as it relies on the possibility of constructing a base for R, when regarded as a vector space over Q). Such a construction is not really necessary, i.e. the theorem does not depend upon the axiom of choice. I leave the matter of arranging a finite dimensional vector space over Q that is sufficient for the proof as an exercise to the reader.</p>
<p>In the next installment of the series I will prove that Dehn&#8217;s invariant is indeed an invariant (under congruence in parts), and calculate its value for the cube and for the tetrahedron, thus finishing the proof.</p>
<p><strong>To Be Continued&#8230;</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://yaniv.leviathanonline.com/blog/math/the-difference-between-area-and-volume-part-i/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
