<?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: Computer Algorithms: Radix Sort</title>
	<atom:link href="/2012/03/19/computer-algorithms-radix-sort/feed/" rel="self" type="application/rss+xml" />
	<link>/2012/03/19/computer-algorithms-radix-sort/</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: Scooby Doo</title>
		<link>/2012/03/19/computer-algorithms-radix-sort/comment-page-1/#comment-18617</link>
		<dc:creator><![CDATA[Scooby Doo]]></dc:creator>
		<pubDate>Sun, 14 Apr 2013 08:25:34 +0000</pubDate>
		<guid isPermaLink="false">/?p=2922#comment-18617</guid>
		<description><![CDATA[pathetic...]]></description>
		<content:encoded><![CDATA[<p>pathetic&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Melsi Habipi</title>
		<link>/2012/03/19/computer-algorithms-radix-sort/comment-page-1/#comment-16530</link>
		<dc:creator><![CDATA[Melsi Habipi]]></dc:creator>
		<pubDate>Mon, 03 Sep 2012 14:20:05 +0000</pubDate>
		<guid isPermaLink="false">/?p=2922#comment-16530</guid>
		<description><![CDATA[If I am not wrong this version will create a stack with only 10 values, (each value will be an array of values with the same current digit). This will sort any kind of array as long as they have the same count of digits! For integers with leading zeros (if any) quotes are required: e.g: &#039;00012&#039;

&lt;code&gt;
-1)
			goto LOOP;
			
		echo implode(&#039;, &#039;, $L).&quot;\n\n&quot;;	
	}
?&#062;
&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>If I am not wrong this version will create a stack with only 10 values, (each value will be an array of values with the same current digit). This will sort any kind of array as long as they have the same count of digits! For integers with leading zeros (if any) quotes are required: e.g: &#8216;00012&#8217;</p>
<p><code><br />
-1)<br />
			goto LOOP;</p>
<p>		echo implode(', ', $L)."\n\n";<br />
	}<br />
?&gt;<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexandre Fayolle</title>
		<link>/2012/03/19/computer-algorithms-radix-sort/comment-page-1/#comment-15340</link>
		<dc:creator><![CDATA[Alexandre Fayolle]]></dc:creator>
		<pubDate>Thu, 22 Mar 2012 12:16:50 +0000</pubDate>
		<guid isPermaLink="false">/?p=2922#comment-15340</guid>
		<description><![CDATA[works only with arrays of *small* *positive* integers. If your data is made of a sparse set of random large integers, you end up consuming a very large amount of memory in the first pass.]]></description>
		<content:encoded><![CDATA[<p>works only with arrays of *small* *positive* integers. If your data is made of a sparse set of random large integers, you end up consuming a very large amount of memory in the first pass.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karthic</title>
		<link>/2012/03/19/computer-algorithms-radix-sort/comment-page-1/#comment-15338</link>
		<dc:creator><![CDATA[Karthic]]></dc:creator>
		<pubDate>Thu, 22 Mar 2012 10:25:15 +0000</pubDate>
		<guid isPermaLink="false">/?p=2922#comment-15338</guid>
		<description><![CDATA[I think this is counting sort. Radix sort sorts the data based on the digits. Eg: sort all the digits based on its LSB then move towards sorting based on its MSB. 
Radix sort  internally uses counting sort(the one you&#039;ve mentioned above) to sort the data. Reference: &#039;Introduction To Algorithms&#039; by CLRS]]></description>
		<content:encoded><![CDATA[<p>I think this is counting sort. Radix sort sorts the data based on the digits. Eg: sort all the digits based on its LSB then move towards sorting based on its MSB.<br />
Radix sort  internally uses counting sort(the one you&#8217;ve mentioned above) to sort the data. Reference: &#8216;Introduction To Algorithms&#8217; by CLRS</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bigblatch</title>
		<link>/2012/03/19/computer-algorithms-radix-sort/comment-page-1/#comment-15327</link>
		<dc:creator><![CDATA[bigblatch]]></dc:creator>
		<pubDate>Wed, 21 Mar 2012 09:08:12 +0000</pubDate>
		<guid isPermaLink="false">/?p=2922#comment-15327</guid>
		<description><![CDATA[I may have been hasty in declaring that radix sort is not linear.  Right after posting the comment, I found another page explaining why it IS linear, or close to it.  I don&#039;t know which is true, so you can ignore my second comment.  The first one still stands though.  At least until that one is proven wrong too. :)]]></description>
		<content:encoded><![CDATA[<p>I may have been hasty in declaring that radix sort is not linear.  Right after posting the comment, I found another page explaining why it IS linear, or close to it.  I don&#8217;t know which is true, so you can ignore my second comment.  The first one still stands though.  At least until that one is proven wrong too. 🙂</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bigblatch</title>
		<link>/2012/03/19/computer-algorithms-radix-sort/comment-page-1/#comment-15326</link>
		<dc:creator><![CDATA[bigblatch]]></dc:creator>
		<pubDate>Wed, 21 Mar 2012 09:01:37 +0000</pubDate>
		<guid isPermaLink="false">/?p=2922#comment-15326</guid>
		<description><![CDATA[Two comments:

In any language where you don&#039;t have to explicitly initialize an array&#039;s size, it is implicitly being initialized to a default size, and any time you try to add an element beyond the size of the array, a new, larger array must be allocated, and the contents of the first array copied to the second array.  There&#039;s no such thing as magic arrays that can change size at no cost.

Because of this, your solution is actually potentially VERY slow, depending on the highest value of an integer in the list to sort, and how often the array must be reallocated and copied.  It&#039;s important to know how things work under the covers to understand their performance implications.

Second comment: this algorithm is NOT linear.  There&#039;s no such thing as a linear sorting algorithm.  O(n log n) is the best that&#039;s possible.  Here is an explanation on why radix sort is actually O(n log n): http://www.jimloy.com/computer/radix.htm]]></description>
		<content:encoded><![CDATA[<p>Two comments:</p>
<p>In any language where you don&#8217;t have to explicitly initialize an array&#8217;s size, it is implicitly being initialized to a default size, and any time you try to add an element beyond the size of the array, a new, larger array must be allocated, and the contents of the first array copied to the second array.  There&#8217;s no such thing as magic arrays that can change size at no cost.</p>
<p>Because of this, your solution is actually potentially VERY slow, depending on the highest value of an integer in the list to sort, and how often the array must be reallocated and copied.  It&#8217;s important to know how things work under the covers to understand their performance implications.</p>
<p>Second comment: this algorithm is NOT linear.  There&#8217;s no such thing as a linear sorting algorithm.  O(n log n) is the best that&#8217;s possible.  Here is an explanation on why radix sort is actually O(n log n): <a href="http://www.jimloy.com/computer/radix.htm" rel="nofollow">http://www.jimloy.com/computer/radix.htm</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radix or Counting sort?</title>
		<link>/2012/03/19/computer-algorithms-radix-sort/comment-page-1/#comment-15321</link>
		<dc:creator><![CDATA[Radix or Counting sort?]]></dc:creator>
		<pubDate>Tue, 20 Mar 2012 21:52:03 +0000</pubDate>
		<guid isPermaLink="false">/?p=2922#comment-15321</guid>
		<description><![CDATA[Isn&#039;t what you are describing is a Counting Sort?

see http://en.wikipedia.org/wiki/Counting_sort]]></description>
		<content:encoded><![CDATA[<p>Isn&#8217;t what you are describing is a Counting Sort?</p>
<p>see <a href="http://en.wikipedia.org/wiki/Counting_sort" rel="nofollow">http://en.wikipedia.org/wiki/Counting_sort</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
