<?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>Re-Cycled Air &#187; Data Structures</title>
	<atom:link href="http://www.re-cycledair.com/tag/data-structures/feed" rel="self" type="application/rss+xml" />
	<link>http://www.re-cycledair.com</link>
	<description>Jack Slingerland&#039;s Programming Adventures</description>
	<lastBuildDate>Tue, 17 Jan 2012 01:14:07 +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>Circular Queue</title>
		<link>http://www.re-cycledair.com/circular-queue</link>
		<comments>http://www.re-cycledair.com/circular-queue#comments</comments>
		<pubDate>Mon, 26 Oct 2009 15:34:47 +0000</pubDate>
		<dc:creator>Jack Slingerland</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Data Structures]]></category>
		<category><![CDATA[Limbo]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Queue]]></category>

		<guid isPermaLink="false">http://71.10.25.227:8000/?p=162</guid>
		<description><![CDATA[If you float around Computer Science / Programming circles enough, it&#8217;s likely that you&#8217;ve come across the term &#8220;circular queue&#8221;.  A circular queue is a queue of &#60;something&#62; that is fixed in size, and when the end of the queue &#8230; <a href="http://www.re-cycledair.com/circular-queue">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you float around Computer Science / Programming circles enough, it&#8217;s likely that you&#8217;ve come across the term &#8220;circular queue&#8221;.  A circular queue is a queue of &lt;something&gt; that is fixed in size, and when the end of the queue has been reached, it circles back to the front and starts pushing items from there.  If the head catches up to the tail, the queue is said to be full.  In C style languages, circular queues can be implemented using pointers fairly easily.  In my case though, I don&#8217;t have pointers, so I&#8217;m just keeping two variables (head, tail) that tell me where the import parts are.</p>
<p>Some people might wonder &#8220;Why on earth are you implementing a queue by hand?&#8221;, which is valid question.  The answer is because there is now STL-type library in Limbo, so implementation of a queue falls into my lap.  I suppose this post doesn&#8217;t have much of point, except to say &#8220;Use the friggin&#8217; library if it&#8217;s available.&#8221;.  For one, it&#8217;s already been done, and two, it&#8217;s probably bug free.</p>
 <img src="http://www.re-cycledair.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=162" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.re-cycledair.com/circular-queue/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/12 queries in 0.077 seconds using disk: basic
Object Caching 245/258 objects using disk: basic

Served from: www.re-cycledair.com @ 2012-02-08 01:06:01 -->
