<?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: Shell Sort</title>
	<atom:link href="/2012/02/27/computer-algorithms-shell-sort/feed/" rel="self" type="application/rss+xml" />
	<link>/2012/02/27/computer-algorithms-shell-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: Stephanie</title>
		<link>/2012/02/27/computer-algorithms-shell-sort/comment-page-1/#comment-458511</link>
		<dc:creator><![CDATA[Stephanie]]></dc:creator>
		<pubDate>Tue, 11 Jul 2017 12:32:14 +0000</pubDate>
		<guid isPermaLink="false">/?p=2734#comment-458511</guid>
		<description><![CDATA[i&#039;m confused by the implementation piece. You talk about the Knuth algorithm which is (3^k-1)/2 but in your second implementation of shell sort you essentially only divide the number of elements by 2. What am I missing?]]></description>
		<content:encoded><![CDATA[<p>i&#8217;m confused by the implementation piece. You talk about the Knuth algorithm which is (3^k-1)/2 but in your second implementation of shell sort you essentially only divide the number of elements by 2. What am I missing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammad Fakhreddin</title>
		<link>/2012/02/27/computer-algorithms-shell-sort/comment-page-1/#comment-389522</link>
		<dc:creator><![CDATA[Mohammad Fakhreddin]]></dc:creator>
		<pubDate>Thu, 17 Dec 2015 20:58:33 +0000</pubDate>
		<guid isPermaLink="false">/?p=2734#comment-389522</guid>
		<description><![CDATA[It was really helpful thanks.]]></description>
		<content:encoded><![CDATA[<p>It was really helpful thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yang</title>
		<link>/2012/02/27/computer-algorithms-shell-sort/comment-page-1/#comment-21532</link>
		<dc:creator><![CDATA[Yang]]></dc:creator>
		<pubDate>Mon, 17 Mar 2014 22:30:43 +0000</pubDate>
		<guid isPermaLink="false">/?p=2734#comment-21532</guid>
		<description><![CDATA[Can I say that the shell sort just reduce the # of swaps but # of compares is more than the insertion sort?
Because I think even if the input is sorted, the algorithm needs to compare the sequence once when gap = 1, and when we calculate the other gaps, the # of compares must increase.]]></description>
		<content:encoded><![CDATA[<p>Can I say that the shell sort just reduce the # of swaps but # of compares is more than the insertion sort?<br />
Because I think even if the input is sorted, the algorithm needs to compare the sequence once when gap = 1, and when we calculate the other gaps, the # of compares must increase.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mateusz</title>
		<link>/2012/02/27/computer-algorithms-shell-sort/comment-page-1/#comment-16792</link>
		<dc:creator><![CDATA[Mateusz]]></dc:creator>
		<pubDate>Mon, 15 Oct 2012 16:13:12 +0000</pubDate>
		<guid isPermaLink="false">/?p=2734#comment-16792</guid>
		<description><![CDATA[The images give the impression that every i&#039;th number is compared in shell sort and then swapped if necessary.  

The image presents the algorithm the following way:
If the gap is 3:
  For all elements in the array compare only every third numbers, 

Where the Shell Algorithm says:
If the gap is 3:
  for every x in the array:
    compare x with y (which lies 3 items ahead)


This video shows how the algorithm works:
http://www.youtube.com/watch?v=qzXAVXddcPU]]></description>
		<content:encoded><![CDATA[<p>The images give the impression that every i&#8217;th number is compared in shell sort and then swapped if necessary.  </p>
<p>The image presents the algorithm the following way:<br />
If the gap is 3:<br />
  For all elements in the array compare only every third numbers, </p>
<p>Where the Shell Algorithm says:<br />
If the gap is 3:<br />
  for every x in the array:<br />
    compare x with y (which lies 3 items ahead)</p>
<p>This video shows how the algorithm works:<br />
<a href="http://www.youtube.com/watch?v=qzXAVXddcPU" rel="nofollow">http://www.youtube.com/watch?v=qzXAVXddcPU</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
