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

<channel>
	<title>Algorithms (F2008) &#187; challenges</title>
	<atom:link href="http://apollonius.cs.utah.edu/classes/algorithmsf08/category/challenges/feed" rel="self" type="application/rss+xml" />
	<link>http://apollonius.cs.utah.edu/classes/algorithmsf08</link>
	<description>Suresh Venkatasubramanian // MEB 3105 // MW 1045-1205</description>
	<pubDate>Mon, 29 Dec 2008 08:07:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Challenge: Tower of Hanoi variant.</title>
		<link>http://apollonius.cs.utah.edu/classes/algorithmsf08/2008/09/04/challenge-tower-of-hanoi-variant/</link>
		<comments>http://apollonius.cs.utah.edu/classes/algorithmsf08/2008/09/04/challenge-tower-of-hanoi-variant/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 16:06:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[challenges]]></category>

		<category><![CDATA[news]]></category>

		<guid isPermaLink="false">http://apollonius.cs.utah.edu/classes/algorithmsf08/?p=16</guid>
		<description><![CDATA[The standard ToH problem has 3 pegs, and the resulting recurrence for the number of steps needed to transfer n blocks from peg 1 to peg 3 solves to .
Suppose we had FOUR pegs ? One strategy (which is conjectured to be optimal, but is not known to be so) is the following: Take the [...]]]></description>
			<content:encoded><![CDATA[<p>The standard ToH problem has 3 pegs, and the resulting recurrence for the number of steps needed to transfer n blocks from peg 1 to peg 3 solves to <img src="http://apollonius.cs.utah.edu/classes/algorithmsf08/wp-content/cache/tex_c378ea2979a4819048354a1de45b09f8.png" align="absmiddle" class="tex" alt="T(n) = 2^n-1" />.</p>
<p>Suppose we had FOUR pegs ? One strategy (which is conjectured to be optimal, but is not known to be so) is the following: Take the first n-k blocks and move them from 1 to 2 using all four pegs. Take the remaining k blocks and move them from 1 to 4 without using 2 (which is a three-peg problem). Take the n-k blocks on 2 and move them to 4, using all four pegs (we can do this because any of these blocks can sit on top of the blocks currently on 4, so it&#8217;s as if 4 was empty.</p>
<p>There are two questions that result from this algorithm.</p>
<ul>
<li>For some fixed k, can we write down the resulting recurrence and solve it ?</li>
<li>What is the right value of k to pick to get the overall best solution ?</li>
</ul>
<p>It&#8217;s probably best to solve the first question and obtain the solution as a function of n and k. You can then try to minimize this expression with respect to k. Enjoy <img src='http://apollonius.cs.utah.edu/classes/algorithmsf08/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You can post questions in the comments: use a SPOILER alert if you&#8217;re going to post a solution though.</p>
]]></content:encoded>
			<wfw:commentRss>http://apollonius.cs.utah.edu/classes/algorithmsf08/2008/09/04/challenge-tower-of-hanoi-variant/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
