<?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/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>H1DD3N.R350URC3 &#187; Data Structures</title>
	<atom:link href="http://blog.hexagonstar.com/tag/data-structures/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hexagonstar.com</link>
	<description>turn-based glory and pixel pleasure</description>
	<lastBuildDate>Sat, 10 Dec 2011 02:45:06 +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>ActionScript 3 MultiMap Class</title>
		<link>http://blog.hexagonstar.com/as3_multimap_class/</link>
		<comments>http://blog.hexagonstar.com/as3_multimap_class/#comments</comments>
		<pubDate>Sun, 10 Jun 2007 08:28:11 +0000</pubDate>
		<dc:creator>sascha</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Data Structures]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Source Code]]></category>

		<guid isPermaLink="false">http://blog.hexagonstar.com/actionscript-3-multimap-class/</guid>
		<description><![CDATA[Recently I needed a HashMap for a project to map key/value pairs but in that particular case the Map required to map not just one but several values to a key. I could have used an array or object to store the values in and map that one but in practice it turned out that [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I needed a HashMap for a project to map key/value pairs but in that particular case the Map required to map not just one but several values to a key. I could have used an array or object to store the values in and map that one but in practice it turned out that accessing the map looked rather messy. It would be much more elegant to have a map to that multiple values can be mapped directly. After some investigation (strangely even Java seems not to have a MultiMap included) I came up with writing my own MultiMap class, so here it is!</p>
<p><span id="more-138"></span><br />
The MultiMap is heavily based on <a href="http://lab.polygonal.de/ds/" target="_blank">Michael Baczynski&#8217;s HashTable class</a> but I modified it to my requirements and added a couple of additional methods for luxury. At first I wrote an even more customized version that would decide automatically which hash function to use but as it turned out some of these changes weighted heavy on the performance, especially not using a strict equality operator (===) and having a HashEntry object with non-numeric keys. In fact Michael&#8217;s class is still a tad faster (he really squeezed out the last bit of performance there) but as long as the MultiMap isn&#8217;t too large/full there is only a minor difference of some milliseconds.<br />
As a trade-off I added checking for existing keys (which can be omitted to improve performance when adding values) and of course there is the multiple values functionality which required a more complex implementation of some methods.</p>
<p><a href="http://blog.hexagonstar.com/download/MultiMap.as" title="Download AS3 MultiMap Class v1.1.0 (12.25 kB, downloaded 1329 times)"><img src="http://blog.hexagonstar.com/wp-content/uploads/downloadbutton.png" alt="Download AS3 MultiMap Class v1.1.0 (12.25 kB, downloaded 1329 times)" /></a></p>
<p>I&#8217;m sure there is still a lot of room for improvement so if you have any suggestions it would be cool to let us know!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hexagonstar.com/as3_multimap_class/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>AS 3.0 Data Structures For Game Developers</title>
		<link>http://blog.hexagonstar.com/as3_data_structures_for_game_developers/</link>
		<comments>http://blog.hexagonstar.com/as3_data_structures_for_game_developers/#comments</comments>
		<pubDate>Fri, 25 May 2007 15:35:11 +0000</pubDate>
		<dc:creator>sascha</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Data Structures]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[Game Development]]></category>

		<guid isPermaLink="false">http://blog.hexagonstar.com/as-30-data-structures-for-game-developers/</guid>
		<description><![CDATA[In case you missed it Michael of Polygonal Labs has released a package of ActionScript 3.0 data structures that are especially dedicated for game development. He&#8217;s also writing examples on how some of the classes are used, for example Queue and Tree. The hexagon framework will contain similar data structure classes but they will adhere [...]]]></description>
			<content:encoded><![CDATA[<p>In case you missed it Michael of <a href="http://lab.polygonal.de/" target="_blank">Polygonal Labs</a> has released a package of ActionScript 3.0 <a href="http://lab.polygonal.de/ds/" target="_blank">data structures</a> that are especially dedicated for game development. He&#8217;s also writing examples on how some of the classes are used, for example <a href="http://lab.polygonal.de/2007/05/23/data-structures-example-the-queue-class/" target="_blank">Queue</a> and <a href="http://lab.polygonal.de/2007/05/15/data-structures-example-the-tree-class/">Tree</a>.<br />
The <a href="http://code.google.com/p/hexagon/" target="_blank">hexagon framework</a> will contain similar data structure classes but they will adhere more to interfaces and patterns. Nevertheless I will optimize them for speed as best as I can. In case you are wondering &#8230; no, the hexagon framework hasn&#8217;t been released yet but I can say now that it won&#8217;t take too long anymore until initial release.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hexagonstar.com/as3_data_structures_for_game_developers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

