<?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>Ranok&#039;s Ramblings &#187; triangles</title>
	<atom:link href="http://www.r4n0k.com/tag/triangles/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.r4n0k.com</link>
	<description>A peek into my life, and the projects I never complete</description>
	<lastBuildDate>Sat, 04 Feb 2012 16:36:19 +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>Computers Like Rectangles</title>
		<link>http://www.r4n0k.com/2009/05/24/computers-like-rectangles/</link>
		<comments>http://www.r4n0k.com/2009/05/24/computers-like-rectangles/#comments</comments>
		<pubDate>Sun, 24 May 2009 12:59:32 +0000</pubDate>
		<dc:creator>ranok</dc:creator>
				<category><![CDATA[For Fun]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[quandry]]></category>
		<category><![CDATA[rectangles]]></category>
		<category><![CDATA[triangles]]></category>

		<guid isPermaLink="false">http://www.r4n0k.com/?p=192</guid>
		<description><![CDATA[The other day I was at a friend&#8217;s house, and while waiting for the oven to preheat, I stumbled across a game I once played as a child, a triangular peg board where the goal is to remove pegs such that there is only one peg remaining. I was thinking of devising a program to [...]]]></description>
			<content:encoded><![CDATA[<p>The other day I was at a friend&#8217;s house, and while waiting for the oven to preheat, I stumbled across a game I once played as a child, a triangular peg board where the goal is to remove pegs such that there is only one peg remaining. I was thinking of devising a program to attempt to solve the puzzle, much like my programming languages assignment last year to solve a slide puzzle. However, the more I thought about it, the more I realized how attached the conventional computer science paradigm is to rectangular data. It is almost too easy to write a program to play checkers (or at least manipulate the pieces on a board), but it is certainly non-trivial to write a simple and efficient algorithm the maintain the board state. I think it&#8217;s rather interesting how the problems we generally have to solve fit rather nicely into their little rectangles, and how few problems require other shapes.</p>
<p>For a solution to the peg board problem, I found <a href="http://www.danobrien.ws/PegBoard.html">this site</a> that documents the author&#8217;s process and a code listing. If you&#8217;re interested in the game as much (or more) than that the programmatic solution, there are also a number of statistics for possible solutions on the site.</p>
<p>Peace and chow,</p>
<p>Ranok</p>
]]></content:encoded>
			<wfw:commentRss>http://www.r4n0k.com/2009/05/24/computers-like-rectangles/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

