<?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: Friday Algorithms: Sorting a Set of Integers &#8211; Far Quicker than Quicksort!</title>
	<atom:link href="/2010/06/25/friday-algorithms-sorting-a-set-of-integers-far-quicker-than-quicksort/feed/" rel="self" type="application/rss+xml" />
	<link>/2010/06/25/friday-algorithms-sorting-a-set-of-integers-far-quicker-than-quicksort/</link>
	<description>on web development</description>
	<lastBuildDate>Fri, 26 Oct 2018 21:40:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>By: Amadeus</title>
		<link>/2010/06/25/friday-algorithms-sorting-a-set-of-integers-far-quicker-than-quicksort/comment-page-1/#comment-479732</link>
		<dc:creator><![CDATA[Amadeus]]></dc:creator>
		<pubDate>Mon, 29 Jan 2018 12:16:50 +0000</pubDate>
		<guid isPermaLink="false">/?p=1689#comment-479732</guid>
		<description><![CDATA[This is the best explanation I have found so far of this algorithm. Well done and thank you.]]></description>
		<content:encoded><![CDATA[<p>This is the best explanation I have found so far of this algorithm. Well done and thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoimen</title>
		<link>/2010/06/25/friday-algorithms-sorting-a-set-of-integers-far-quicker-than-quicksort/comment-page-1/#comment-14520</link>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
		<pubDate>Thu, 27 Oct 2011 09:33:37 +0000</pubDate>
		<guid isPermaLink="false">/?p=1689#comment-14520</guid>
		<description><![CDATA[@Eddy Vang - first of all do you think this code is maintainable? Yes, it&#039;s javascript so it should be minified. What about &quot;function s(a) ...&quot; ;)?

However by saying &quot;faster&quot; do you consider the speed of Math functions? Have you benchmarked this code?]]></description>
		<content:encoded><![CDATA[<p>@Eddy Vang &#8211; first of all do you think this code is maintainable? Yes, it&#8217;s javascript so it should be minified. What about &#8220;function s(a) &#8230;&#8221; ;)?</p>
<p>However by saying &#8220;faster&#8221; do you consider the speed of Math functions? Have you benchmarked this code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddy Vang</title>
		<link>/2010/06/25/friday-algorithms-sorting-a-set-of-integers-far-quicker-than-quicksort/comment-page-1/#comment-14518</link>
		<dc:creator><![CDATA[Eddy Vang]]></dc:creator>
		<pubDate>Thu, 27 Oct 2011 00:46:55 +0000</pubDate>
		<guid isPermaLink="false">/?p=1689#comment-14518</guid>
		<description><![CDATA[Even smaller

function sort(a){var d=[],o=[],e=Math.min.apply(Math,a),g=Math.max.apply(Math,a);for(var i in a)d[a[i]]=1;do d[e]&#038;&#038;o.push(e);while(e++&#060;g);return o};]]></description>
		<content:encoded><![CDATA[<p>Even smaller</p>
<p>function sort(a){var d=[],o=[],e=Math.min.apply(Math,a),g=Math.max.apply(Math,a);for(var i in a)d[a[i]]=1;do d[e]&amp;&amp;o.push(e);while(e++&lt;g);return o};</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddy Vang</title>
		<link>/2010/06/25/friday-algorithms-sorting-a-set-of-integers-far-quicker-than-quicksort/comment-page-1/#comment-14517</link>
		<dc:creator><![CDATA[Eddy Vang]]></dc:creator>
		<pubDate>Thu, 27 Oct 2011 00:31:14 +0000</pubDate>
		<guid isPermaLink="false">/?p=1689#comment-14517</guid>
		<description><![CDATA[CORRECTION. Looks like this form doesn&#039;t like -- or minus minus.

My code suppose to be while(c--); //c minus minus
and NOT while(c–); //WRONG from auto correct]]></description>
		<content:encoded><![CDATA[<p>CORRECTION. Looks like this form doesn&#8217;t like &#8212; or minus minus.</p>
<p>My code suppose to be while(c&#8211;); //c minus minus<br />
and NOT while(c–); //WRONG from auto correct</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddy Vang</title>
		<link>/2010/06/25/friday-algorithms-sorting-a-set-of-integers-far-quicker-than-quicksort/comment-page-1/#comment-14516</link>
		<dc:creator><![CDATA[Eddy Vang]]></dc:creator>
		<pubDate>Thu, 27 Oct 2011 00:21:47 +0000</pubDate>
		<guid isPermaLink="false">/?p=1689#comment-14516</guid>
		<description><![CDATA[Here&#039;s a faster and smaller version.
&lt;pre lang=&quot;PHP&quot; escape=&quot;true&quot;&gt;
function sort(a){
    var d=[],f=[],e=Math.min.apply(Math,a),g=Math.max.apply(Math,a),c=g-1;
    do d[c]=0;while(c--);
    for(c in a)d[a[c]]=1;
    do d[e]&#038;&#038;f.push(e);while(e++&#060;g);
    return f
};
&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>Here&#8217;s a faster and smaller version.</p>
<pre lang="PHP" escape="true">
function sort(a){
    var d=[],f=[],e=Math.min.apply(Math,a),g=Math.max.apply(Math,a),c=g-1;
    do d[c]=0;while(c--);
    for(c in a)d[a[c]]=1;
    do d[e]&amp;&amp;f.push(e);while(e++&lt;g);
    return f
};
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: vince</title>
		<link>/2010/06/25/friday-algorithms-sorting-a-set-of-integers-far-quicker-than-quicksort/comment-page-1/#comment-14460</link>
		<dc:creator><![CDATA[vince]]></dc:creator>
		<pubDate>Fri, 14 Oct 2011 06:28:47 +0000</pubDate>
		<guid isPermaLink="false">/?p=1689#comment-14460</guid>
		<description><![CDATA[thanks for this post i pass my project it is good]]></description>
		<content:encoded><![CDATA[<p>thanks for this post i pass my project it is good</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>/2010/06/25/friday-algorithms-sorting-a-set-of-integers-far-quicker-than-quicksort/comment-page-1/#comment-13204</link>
		<dc:creator><![CDATA[Paul]]></dc:creator>
		<pubDate>Mon, 28 Jun 2010 17:30:58 +0000</pubDate>
		<guid isPermaLink="false">/?p=1689#comment-13204</guid>
		<description><![CDATA[FYI, this tends to be really slow in JavaScript. JS uses hashs for their arrays, so what should be O(n) becomes O(n log n). In IE, it&#039;s even worse because they use linked lists. So O(n) becomes O(n^2) or worse.

I remember using this Radix trick on my professors in school to be a prick. It was always fun to make them include a memory big-O with their questions.]]></description>
		<content:encoded><![CDATA[<p>FYI, this tends to be really slow in JavaScript. JS uses hashs for their arrays, so what should be O(n) becomes O(n log n). In IE, it&#8217;s even worse because they use linked lists. So O(n) becomes O(n^2) or worse.</p>
<p>I remember using this Radix trick on my professors in school to be a prick. It was always fun to make them include a memory big-O with their questions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>/2010/06/25/friday-algorithms-sorting-a-set-of-integers-far-quicker-than-quicksort/comment-page-1/#comment-13197</link>
		<dc:creator><![CDATA[Kevin]]></dc:creator>
		<pubDate>Sun, 27 Jun 2010 02:23:30 +0000</pubDate>
		<guid isPermaLink="false">/?p=1689#comment-13197</guid>
		<description><![CDATA[Also known as bitmap sort. This algorithm is very useful if you want to sort integers in a range and when you have to use minimal primary memory but have secondary memory available.]]></description>
		<content:encoded><![CDATA[<p>Also known as bitmap sort. This algorithm is very useful if you want to sort integers in a range and when you have to use minimal primary memory but have secondary memory available.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoimen</title>
		<link>/2010/06/25/friday-algorithms-sorting-a-set-of-integers-far-quicker-than-quicksort/comment-page-1/#comment-13190</link>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
		<pubDate>Sat, 26 Jun 2010 06:52:32 +0000</pubDate>
		<guid isPermaLink="false">/?p=1689#comment-13190</guid>
		<description><![CDATA[@Matthew - thanks for the comment - I completely agree with you! Indeed sometimes choosing an algorithm is as difficult as the implementation itself!]]></description>
		<content:encoded><![CDATA[<p>@Matthew &#8211; thanks for the comment &#8211; I completely agree with you! Indeed sometimes choosing an algorithm is as difficult as the implementation itself!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoimen</title>
		<link>/2010/06/25/friday-algorithms-sorting-a-set-of-integers-far-quicker-than-quicksort/comment-page-1/#comment-13189</link>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
		<pubDate>Sat, 26 Jun 2010 06:50:59 +0000</pubDate>
		<guid isPermaLink="false">/?p=1689#comment-13189</guid>
		<description><![CDATA[@kjordan - of course this is an algorithm using transformation instead of comparison like the quicksort, and thus it&#039;s using more memory. That&#039;s why you should be very careful when choosing this algorithm!]]></description>
		<content:encoded><![CDATA[<p>@kjordan &#8211; of course this is an algorithm using transformation instead of comparison like the quicksort, and thus it&#8217;s using more memory. That&#8217;s why you should be very careful when choosing this algorithm!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
