<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: AS2 Sorting Algorithms</title>
	<atom:link href="http://www.timwalling.com/2006/02/27/as2-sorting-algorithms/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.timwalling.com/2006/02/27/as2-sorting-algorithms/</link>
	<description>technology is good</description>
	<lastBuildDate>Wed, 21 Jan 2009 18:24:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Zeus Labs &#187; Blog Archive &#187; Computer Science Concepts in Actionscript</title>
		<link>http://www.timwalling.com/2006/02/27/as2-sorting-algorithms/comment-page-1/#comment-58</link>
		<dc:creator>Zeus Labs &#187; Blog Archive &#187; Computer Science Concepts in Actionscript</dc:creator>
		<pubDate>Fri, 14 Apr 2006 02:08:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.timwalling.com/2006/02/27/as2-sorting-algorithms/#comment-58</guid>
		<description>[...] Several Sorting Algorithms [...]</description>
		<content:encoded><![CDATA[<p>[...] Several Sorting Algorithms [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simonin.it - Life is a flash / Algoritmi di ordinamento in AS2</title>
		<link>http://www.timwalling.com/2006/02/27/as2-sorting-algorithms/comment-page-1/#comment-31</link>
		<dc:creator>Simonin.it - Life is a flash / Algoritmi di ordinamento in AS2</dc:creator>
		<pubDate>Tue, 28 Feb 2006 08:28:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.timwalling.com/2006/02/27/as2-sorting-algorithms/#comment-31</guid>
		<description>[...] Interessante articolo riguardante gli algoritmi di ordinamento (i più famosi) che in questo caso interagiscono con gli elementi di un array (la quale cardinalità è a discrezione dell&#8217;utente). Come dice l&#8217;autore il QuickSort non ha potuto implementarlo perchè l&#8217;albero delle ricorsioni di Flash è piuttosto limitato (se non erro si limita a 256 chiamate ricorsive). [...]</description>
		<content:encoded><![CDATA[<p>[...] Interessante articolo riguardante gli algoritmi di ordinamento (i più famosi) che in questo caso interagiscono con gli elementi di un array (la quale cardinalità è a discrezione dell&#8217;utente). Come dice l&#8217;autore il QuickSort non ha potuto implementarlo perchè l&#8217;albero delle ricorsioni di Flash è piuttosto limitato (se non erro si limita a 256 chiamate ricorsive). [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Felix Raab</title>
		<link>http://www.timwalling.com/2006/02/27/as2-sorting-algorithms/comment-page-1/#comment-21</link>
		<dc:creator>Felix Raab</dc:creator>
		<pubDate>Mon, 27 Feb 2006 21:31:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.timwalling.com/2006/02/27/as2-sorting-algorithms/#comment-21</guid>
		<description>sorry...the blog software cut off my post...? some illegal chars...?

@darron: sounds reansonable that the internal Array.sort method should be faster but some time ago I compared it with a custom quick sort function and if I remember correctly in some cases the quick sort was faster than Array.sort...</description>
		<content:encoded><![CDATA[<p>sorry&#8230;the blog software cut off my post&#8230;? some illegal chars&#8230;?</p>
<p>@darron: sounds reansonable that the internal Array.sort method should be faster but some time ago I compared it with a custom quick sort function and if I remember correctly in some cases the quick sort was faster than Array.sort&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Felix Raab</title>
		<link>http://www.timwalling.com/2006/02/27/as2-sorting-algorithms/comment-page-1/#comment-19</link>
		<dc:creator>Felix Raab</dc:creator>
		<pubDate>Mon, 27 Feb 2006 21:29:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.timwalling.com/2006/02/27/as2-sorting-algorithms/#comment-19</guid>
		<description>Hey tim,

here&#039;s another one you could include in your benchmark: It&#039;s called &quot;gnome sort&quot; (http://www.cs.vu.nl/~dick/gnomesort.html). An as version would be something like this: (I&#039;m guessing gnome sort is quite slow compared to the others...?)

function gnomeSort(ar:Array):Void {
	
	var i:Number = 0;
	var n:Number = ar.length;
	var tmp;
		
	while (i </description>
		<content:encoded><![CDATA[<p>Hey tim,</p>
<p>here&#8217;s another one you could include in your benchmark: It&#8217;s called &#8220;gnome sort&#8221; (<a href="http://www.cs.vu.nl/~dick/gnomesort.html" rel="nofollow">http://www.cs.vu.nl/~dick/gnomesort.html</a>). An as version would be something like this: (I&#8217;m guessing gnome sort is quite slow compared to the others&#8230;?)</p>
<p>function gnomeSort(ar:Array):Void {</p>
<p>	var i:Number = 0;<br />
	var n:Number = ar.length;<br />
	var tmp;</p>
<p>	while (i</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith Peters</title>
		<link>http://www.timwalling.com/2006/02/27/as2-sorting-algorithms/comment-page-1/#comment-18</link>
		<dc:creator>Keith Peters</dc:creator>
		<pubDate>Mon, 27 Feb 2006 18:04:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.timwalling.com/2006/02/27/as2-sorting-algorithms/#comment-18</guid>
		<description>I&#039;ve seen some of those links before and wondered if it would be worth implementing some of the faster methods in AS. Makes sense though, that the built in one would be faster.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve seen some of those links before and wondered if it would be worth implementing some of the faster methods in AS. Makes sense though, that the built in one would be faster.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.timwalling.com/2006/02/27/as2-sorting-algorithms/comment-page-1/#comment-17</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Mon, 27 Feb 2006 16:07:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.timwalling.com/2006/02/27/as2-sorting-algorithms/#comment-17</guid>
		<description>I started working on a visual sort but hadn&#039;t finished it yet. Thanks for the links. I&#039;ve seen the first one a long time ago. The second one makes it pretty clear what&#039;s going on during the sort.</description>
		<content:encoded><![CDATA[<p>I started working on a visual sort but hadn&#8217;t finished it yet. Thanks for the links. I&#8217;ve seen the first one a long time ago. The second one makes it pretty clear what&#8217;s going on during the sort.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: darron</title>
		<link>http://www.timwalling.com/2006/02/27/as2-sorting-algorithms/comment-page-1/#comment-16</link>
		<dc:creator>darron</dc:creator>
		<pubDate>Mon, 27 Feb 2006 15:59:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.timwalling.com/2006/02/27/as2-sorting-algorithms/#comment-16</guid>
		<description>More important than the implementation details, then, is the understanding of what the sort themselves are doing.  Have you had a chance to look at any of the &quot;visual&quot; sort demos on the internet?  They show the sort &quot;in progress&quot; to help understand the key differences between the sorts:

Here&#039;s one:
http://www.cs.ubc.ca/spider/harrison/Java/sorting-demo.html

Here&#039;s another:
http://math.hws.edu/TMCM/java/xSortLab/

Why not try making one in Flash to help in your understanding of the sorts as a learning tool?</description>
		<content:encoded><![CDATA[<p>More important than the implementation details, then, is the understanding of what the sort themselves are doing.  Have you had a chance to look at any of the &#8220;visual&#8221; sort demos on the internet?  They show the sort &#8220;in progress&#8221; to help understand the key differences between the sorts:</p>
<p>Here&#8217;s one:<br />
<a href="http://www.cs.ubc.ca/spider/harrison/Java/sorting-demo.html" rel="nofollow">http://www.cs.ubc.ca/spider/harrison/Java/sorting-demo.html</a></p>
<p>Here&#8217;s another:<br />
<a href="http://math.hws.edu/TMCM/java/xSortLab/" rel="nofollow">http://math.hws.edu/TMCM/java/xSortLab/</a></p>
<p>Why not try making one in Flash to help in your understanding of the sorts as a learning tool?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.timwalling.com/2006/02/27/as2-sorting-algorithms/comment-page-1/#comment-15</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Mon, 27 Feb 2006 15:14:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.timwalling.com/2006/02/27/as2-sorting-algorithms/#comment-15</guid>
		<description>Thanks for the input. The reason for creating these was mostly out of my own curiosity as to how each would perform in flash. I unfortunately missed this part of intro comp sci being a biology major ;)</description>
		<content:encoded><![CDATA[<p>Thanks for the input. The reason for creating these was mostly out of my own curiosity as to how each would perform in flash. I unfortunately missed this part of intro comp sci being a biology major <img src='http://www.timwalling.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: darron</title>
		<link>http://www.timwalling.com/2006/02/27/as2-sorting-algorithms/comment-page-1/#comment-14</link>
		<dc:creator>darron</dc:creator>
		<pubDate>Mon, 27 Feb 2006 15:06:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.timwalling.com/2006/02/27/as2-sorting-algorithms/#comment-14</guid>
		<description>You might be interested in the custom array sort algorithm that I wrote.  I tweaked the bin sort to create a very rapid way to sort integers in Flash:

http://www.darronschall.com/weblog/archives/000069.cfm

In practice, it&#039;s probably not a good idea to use the sorts that you mention.  These are the classic sorts that are taught in introductory computer science, but they are generally not fast enough, especially in ActionScript.  It&#039;s probably better to rely on the internal Array sort method because it&#039;s the quick sort algorithm and it executes at C++ speed since it&#039;s native to the Flash Player.</description>
		<content:encoded><![CDATA[<p>You might be interested in the custom array sort algorithm that I wrote.  I tweaked the bin sort to create a very rapid way to sort integers in Flash:</p>
<p><a href="http://www.darronschall.com/weblog/archives/000069.cfm" rel="nofollow">http://www.darronschall.com/weblog/archives/000069.cfm</a></p>
<p>In practice, it&#8217;s probably not a good idea to use the sorts that you mention.  These are the classic sorts that are taught in introductory computer science, but they are generally not fast enough, especially in ActionScript.  It&#8217;s probably better to rely on the internal Array sort method because it&#8217;s the quick sort algorithm and it executes at C++ speed since it&#8217;s native to the Flash Player.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
