<?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>《一个显示排序过程的Python脚本》的评论</title>
	<atom:link href="http://coolshell.cn/articles/536.html/feed" rel="self" type="application/rss+xml" />
	<link>http://coolshell.cn/articles/536.html</link>
	<description>享受编程和技术所带来的快乐 - http://coolshell.cn</description>
	<lastBuildDate>Fri, 10 Feb 2012 05:00:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>作者：一些重要的算法 - 走在学习的路上</title>
		<link>http://coolshell.cn/articles/536.html/comment-page-1#comment-90317</link>
		<dc:creator>一些重要的算法 - 走在学习的路上</dc:creator>
		<pubDate>Sun, 30 Oct 2011 06:13:15 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=536#comment-90317</guid>
		<description>[...] 关于排序算法，你可以看看本站的这几篇文章《一个显示排序过程的Python脚本》、《一个排序算法比较的网站》 2011 年 10 月 30 [...]</description>
		<content:encoded><![CDATA[<p>[...] 关于排序算法，你可以看看本站的这几篇文章《一个显示排序过程的Python脚本》、《一个排序算法比较的网站》 2011 年 10 月 30 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：排序算法 Sleep Sort-传播、沟通、分享-一直“有你”</title>
		<link>http://coolshell.cn/articles/536.html/comment-page-1#comment-61036</link>
		<dc:creator>排序算法 Sleep Sort-传播、沟通、分享-一直“有你”</dc:creator>
		<pubDate>Fri, 24 Jun 2011 06:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=536#comment-61036</guid>
		<description>[...] 排序算法好像是程序员学习编程最多的算法，也可能是算法研究者们最喜欢研究的算法了。排序有很多很多的算法，比如，冒泡，插入，选择，堆，快速，归并等等（你可以看看本站以前的那些文章：可视化的排序，排序算法比较，显示排序过程的python）这里向大家介绍一个“巨NB”的排序算法——Sleep Sort。 [...]</description>
		<content:encoded><![CDATA[<p>[...] 排序算法好像是程序员学习编程最多的算法，也可能是算法研究者们最喜欢研究的算法了。排序有很多很多的算法，比如，冒泡，插入，选择，堆，快速，归并等等（你可以看看本站以前的那些文章：可视化的排序，排序算法比较，显示排序过程的python）这里向大家介绍一个“巨NB”的排序算法——Sleep Sort。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：排序算法 Sleep Sort &#124; 酷壳 - CoolShell.cn</title>
		<link>http://coolshell.cn/articles/536.html/comment-page-1#comment-60747</link>
		<dc:creator>排序算法 Sleep Sort &#124; 酷壳 - CoolShell.cn</dc:creator>
		<pubDate>Thu, 23 Jun 2011 01:10:47 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=536#comment-60747</guid>
		<description>[...] 排序算法好像是程序员学习编程最多的算法，也可能是算法研究者们最喜欢研究的算法了。排序有很多很多的算法，比如，冒泡，插入，选择，堆，快速，归并等等（你可以看看本站以前的那些文章：可视化的排序，排序算法比较，显示排序过程的python）这里向大家介绍一个“巨NB”的排序算法——Sleep Sort。 [...]</description>
		<content:encoded><![CDATA[<p>[...] 排序算法好像是程序员学习编程最多的算法，也可能是算法研究者们最喜欢研究的算法了。排序有很多很多的算法，比如，冒泡，插入，选择，堆，快速，归并等等（你可以看看本站以前的那些文章：可视化的排序，排序算法比较，显示排序过程的python）这里向大家介绍一个“巨NB”的排序算法——Sleep Sort。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：转一些重要的算法 &#171; 神采飞扬</title>
		<link>http://coolshell.cn/articles/536.html/comment-page-1#comment-55424</link>
		<dc:creator>转一些重要的算法 &#171; 神采飞扬</dc:creator>
		<pubDate>Sun, 29 May 2011 06:57:34 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=536#comment-55424</guid>
		<description>[...] 关于排序算法，你可以看看本站的这几篇文章《一个显示排序过程的Python脚本》、《一个排序算法比较的网站》 [...]</description>
		<content:encoded><![CDATA[<p>[...] 关于排序算法，你可以看看本站的这几篇文章《一个显示排序过程的Python脚本》、《一个排序算法比较的网站》 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：一些重要的算法【from】 - 然后怎样</title>
		<link>http://coolshell.cn/articles/536.html/comment-page-1#comment-54854</link>
		<dc:creator>一些重要的算法【from】 - 然后怎样</dc:creator>
		<pubDate>Thu, 26 May 2011 02:40:01 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=536#comment-54854</guid>
		<description>[...] 关于排序算法，你可以看看本站的这几篇文章《一个显示排序过程的Python脚本》、《一个排序算法比较的网站》 [...]</description>
		<content:encoded><![CDATA[<p>[...] 关于排序算法，你可以看看本站的这几篇文章《一个显示排序过程的Python脚本》、《一个排序算法比较的网站》 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：一些重要的算法 &#124; w3er</title>
		<link>http://coolshell.cn/articles/536.html/comment-page-1#comment-52195</link>
		<dc:creator>一些重要的算法 &#124; w3er</dc:creator>
		<pubDate>Sun, 15 May 2011 04:50:39 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=536#comment-52195</guid>
		<description>[...] 关于排序算法，你可以看看本站的这几篇文章《一个显示排序过程的Python脚本》、《一个排序算法比较的网站》 [...]</description>
		<content:encoded><![CDATA[<p>[...] 关于排序算法，你可以看看本站的这几篇文章《一个显示排序过程的Python脚本》、《一个排序算法比较的网站》 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：可视化的排序过程 &#124; w3er</title>
		<link>http://coolshell.cn/articles/536.html/comment-page-1#comment-52175</link>
		<dc:creator>可视化的排序过程 &#124; w3er</dc:creator>
		<pubDate>Sun, 15 May 2011 04:32:07 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=536#comment-52175</guid>
		<description>[...] 下面是一个日本程序员制做的一个可视化的排序过程，包括了各种经典的排序算法，你可以调整速度和需要排序的个数。酷壳以前也介绍过几篇相关的文章 一个排序算法比较的网站，一个显示排序过程的Python脚本 关于各种排序算法的运行复杂度比较，请参看Wikipedia的排序算法比较。 [...]</description>
		<content:encoded><![CDATA[<p>[...] 下面是一个日本程序员制做的一个可视化的排序过程，包括了各种经典的排序算法，你可以调整速度和需要排序的个数。酷壳以前也介绍过几篇相关的文章 一个排序算法比较的网站，一个显示排序过程的Python脚本 关于各种排序算法的运行复杂度比较，请参看Wikipedia的排序算法比较。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：可视化的排序过程 &#124; Yong 的个人博客</title>
		<link>http://coolshell.cn/articles/536.html/comment-page-1#comment-40042</link>
		<dc:creator>可视化的排序过程 &#124; Yong 的个人博客</dc:creator>
		<pubDate>Sun, 27 Mar 2011 15:50:05 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=536#comment-40042</guid>
		<description>[...] 可视化的排序过程  2011 年 03 月 27 日 Yong 专业生活 Go to comment     新浪微博 开心网 twitter 豆瓣 腾讯微薄   下面是一个日本程序员制做的一个可视化的排序过程，包括了各种经典的排序算法，你可以调整速度和需要排序的个数。酷壳以前也介绍过几篇相关的文章 一个排序算法比较的网站，一个显示排序过程的Python脚本 关于各种排序算法的运行复杂度比较，请参看Wikipedia的排序算法比较。 html, body{ padding: 0px; margin: 0px; background: white; } .graphical-sort{ position: relative; width: 100%; height: 100%; padding-top: 40px; } .graphical-sort .bars-container{ height: 100%; background: #222; white-space: nowrap; overflow: hidden; } .graphical-sort .bars-container span{ display: inline-block; position: relative; height: 100%; background: #35bddb; border-left: 1px solid #222; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .graphical-sort .bars-container span.highlight{ background: #aee496; } .graphical-sort .controller{ position: absolute; font-size: 10px; white-space: nowrap; overflow: visible; top: 0px; } .graphical-sort .controller .widget{ margin-right: 5px; } .graphical-sort .controller .speed-amount{ display: inline-block; width: 25px; } .graphical-sort .controller .speed-slider{ display: inline-block; width: 95px; } $(function(){ // —————————————– // Bubble sort // —————————————– function bubbleSort(){ var array = this.values var length = array.length for(var i = length – 1; 0 &lt; i; i–){ for(var j = 0; j &lt; i; j++){ this.compare(j, j + 1) } } } // —————————————– // Selection sort // —————————————– function selectionSort(){ var array = this.values var length = array.length for(var i = 0; i &lt; length – 1; i++){ var minIndex = i var minValue = array[minIndex] for (var j = i + 1; j &lt; length; j++) { this.highlight(j, minIndex) if (array[j] &lt; minValue) { minIndex = j minValue = array[minIndex] } } this.compare(i, minIndex) } return array } // —————————————– // Shaker Sort // —————————————– function shakerSort(){ var array = this.values var length = array.length var left = 0 var right = length – 1 var lastSwappedLeft = left var lastSwappedRight = right while(left &lt; right){ lastSwappedRight = 0 for(var i = left; i array[i + 1]){ this.swap(i, i + 1) lastSwappedRight = i }else{ this.highlight(i, i + 1) } } right = lastSwappedRight lastSwappedLeft = length – 1 for(var j = right; left array[j]){ this.swap(j – 1, j) lastSwappedLeft = j }else{ this.highlight(j – 1, j) } } left = lastSwappedLeft } } // —————————————– // Insertion sort // —————————————– function insertionSort(){ var array = this.values var length = array.length for(var i = 1; i &lt; length; i++){ for(var j = i; 0 array[j]){ this.swap(j – 1, j) }else{ this.highlight(j – 1, j) break } } } } // —————————————– // Shell Sort // —————————————– function shellSort(){ var array = this.values var length = array.length var gap = 1 while(gap 1){ gap = Math.floor(gap / 3) for(var i = gap; i &lt; length; i++){ for(var j = i; 0 array[j]){ this.swap(j – gap, j) }else{ this.highlight(j – gap, j) break } } } } } // —————————————– // Quick sort // —————————————– function quickSort(first, last){ // TODO: あとで書き直す var array = this.values first = (first === undefined) ? 0 : first last = (last === undefined) ? (array.length – 1) : last var pivotIndex = Math.floor((first + last) / 2) var pivotValue = array[pivotIndex] var f = first, l = last while(true){ while(true){ this.highlight(f, pivotIndex) if(!(array[f] &lt; pivotValue)) break f++ } while(true){ this.highlight(l, pivotIndex) if(!(pivotValue &lt; array[l])) break l– } if(l [...]</description>
		<content:encoded><![CDATA[<p>[...] 可视化的排序过程  2011 年 03 月 27 日 Yong 专业生活 Go to comment     新浪微博 开心网 twitter 豆瓣 腾讯微薄   下面是一个日本程序员制做的一个可视化的排序过程，包括了各种经典的排序算法，你可以调整速度和需要排序的个数。酷壳以前也介绍过几篇相关的文章 一个排序算法比较的网站，一个显示排序过程的Python脚本 关于各种排序算法的运行复杂度比较，请参看Wikipedia的排序算法比较。 html, body{ padding: 0px; margin: 0px; background: white; } .graphical-sort{ position: relative; width: 100%; height: 100%; padding-top: 40px; } .graphical-sort .bars-container{ height: 100%; background: #222; white-space: nowrap; overflow: hidden; } .graphical-sort .bars-container span{ display: inline-block; position: relative; height: 100%; background: #35bddb; border-left: 1px solid #222; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .graphical-sort .bars-container span.highlight{ background: #aee496; } .graphical-sort .controller{ position: absolute; font-size: 10px; white-space: nowrap; overflow: visible; top: 0px; } .graphical-sort .controller .widget{ margin-right: 5px; } .graphical-sort .controller .speed-amount{ display: inline-block; width: 25px; } .graphical-sort .controller .speed-slider{ display: inline-block; width: 95px; } $(function(){ // —————————————– // Bubble sort // —————————————– function bubbleSort(){ var array = this.values var length = array.length for(var i = length – 1; 0 &lt; i; i–){ for(var j = 0; j &lt; i; j++){ this.compare(j, j + 1) } } } // —————————————– // Selection sort // —————————————– function selectionSort(){ var array = this.values var length = array.length for(var i = 0; i &lt; length – 1; i++){ var minIndex = i var minValue = array[minIndex] for (var j = i + 1; j &lt; length; j++) { this.highlight(j, minIndex) if (array[j] &lt; minValue) { minIndex = j minValue = array[minIndex] } } this.compare(i, minIndex) } return array } // —————————————– // Shaker Sort // —————————————– function shakerSort(){ var array = this.values var length = array.length var left = 0 var right = length – 1 var lastSwappedLeft = left var lastSwappedRight = right while(left &lt; right){ lastSwappedRight = 0 for(var i = left; i array[i + 1]){ this.swap(i, i + 1) lastSwappedRight = i }else{ this.highlight(i, i + 1) } } right = lastSwappedRight lastSwappedLeft = length – 1 for(var j = right; left array[j]){ this.swap(j – 1, j) lastSwappedLeft = j }else{ this.highlight(j – 1, j) } } left = lastSwappedLeft } } // —————————————– // Insertion sort // —————————————– function insertionSort(){ var array = this.values var length = array.length for(var i = 1; i &lt; length; i++){ for(var j = i; 0 array[j]){ this.swap(j – 1, j) }else{ this.highlight(j – 1, j) break } } } } // —————————————– // Shell Sort // —————————————– function shellSort(){ var array = this.values var length = array.length var gap = 1 while(gap 1){ gap = Math.floor(gap / 3) for(var i = gap; i &lt; length; i++){ for(var j = i; 0 array[j]){ this.swap(j – gap, j) }else{ this.highlight(j – gap, j) break } } } } } // —————————————– // Quick sort // —————————————– function quickSort(first, last){ // TODO: あとで書き直す var array = this.values first = (first === undefined) ? 0 : first last = (last === undefined) ? (array.length – 1) : last var pivotIndex = Math.floor((first + last) / 2) var pivotValue = array[pivotIndex] var f = first, l = last while(true){ while(true){ this.highlight(f, pivotIndex) if(!(array[f] &lt; pivotValue)) break f++ } while(true){ this.highlight(l, pivotIndex) if(!(pivotValue &lt; array[l])) break l– } if(l [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：elecalion</title>
		<link>http://coolshell.cn/articles/536.html/comment-page-1#comment-36929</link>
		<dc:creator>elecalion</dc:creator>
		<pubDate>Fri, 18 Mar 2011 06:22:51 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=536#comment-36929</guid>
		<description>参数i没有值的情况下会报错
parser.add_option(
        &quot;-i&quot;,
        dest=&quot;highlight&quot;,
        type=&quot;int&quot;,
        default=[],</description>
		<content:encoded><![CDATA[<p>参数i没有值的情况下会报错<br />
parser.add_option(<br />
        “-i”,<br />
        dest=”highlight”,<br />
        type=”int”,<br />
        default=[],</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：可视化的排序过程 &#124; 酷壳 - CoolShell.cn</title>
		<link>http://coolshell.cn/articles/536.html/comment-page-1#comment-36870</link>
		<dc:creator>可视化的排序过程 &#124; 酷壳 - CoolShell.cn</dc:creator>
		<pubDate>Fri, 18 Mar 2011 02:19:53 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=536#comment-36870</guid>
		<description>[...] 下面是一个日本程序员制做的一个可视化的排序过程，包括了各种经典的排序算法，你可以调整速度和需要排序的个数。酷壳以前也介绍过几篇相关的文章 一个排序算法比较的网站，一个显示排序过程的Python脚本 关于各种排序算法的运行复杂度比较，请参看Wikipedia的排序算法比较。 [...]</description>
		<content:encoded><![CDATA[<p>[...] 下面是一个日本程序员制做的一个可视化的排序过程，包括了各种经典的排序算法，你可以调整速度和需要排序的个数。酷壳以前也介绍过几篇相关的文章 一个排序算法比较的网站，一个显示排序过程的Python脚本 关于各种排序算法的运行复杂度比较，请参看Wikipedia的排序算法比较。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：一些重要的算法 &#124; 简洁源于自信</title>
		<link>http://coolshell.cn/articles/536.html/comment-page-1#comment-25867</link>
		<dc:creator>一些重要的算法 &#124; 简洁源于自信</dc:creator>
		<pubDate>Sat, 29 Jan 2011 01:25:49 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=536#comment-25867</guid>
		<description>[...] 关于排序算法，你可以看看本站的这几篇文章《一个显示排序过程的Python脚本》、《一个排序算法比较的网站》 [...]</description>
		<content:encoded><![CDATA[<p>[...] 关于排序算法，你可以看看本站的这几篇文章《一个显示排序过程的Python脚本》、《一个排序算法比较的网站》 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：几个在线颜色选择器 &#124; YJ Made and Design</title>
		<link>http://coolshell.cn/articles/536.html/comment-page-1#comment-20744</link>
		<dc:creator>几个在线颜色选择器 &#124; YJ Made and Design</dc:creator>
		<pubDate>Wed, 29 Dec 2010 16:57:57 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=536#comment-20744</guid>
		<description>[...] 2009年04月15日 &#8212; 一个显示排序过程的Python脚本 [...]</description>
		<content:encoded><![CDATA[<p>[...] 2009年04月15日 &#8212; 一个显示排序过程的Python脚本 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：一些重要的算法 &#124; IT News - 发布最新IT信息</title>
		<link>http://coolshell.cn/articles/536.html/comment-page-1#comment-11900</link>
		<dc:creator>一些重要的算法 &#124; IT News - 发布最新IT信息</dc:creator>
		<pubDate>Tue, 19 Oct 2010 17:09:38 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=536#comment-11900</guid>
		<description>[...] 关于排序算法，你可以看看本站的这几篇文章《一个显示排序过程的Python脚本》、《一个排序算法比较的网站》 [...]</description>
		<content:encoded><![CDATA[<p>[...] 关于排序算法，你可以看看本站的这几篇文章《一个显示排序过程的Python脚本》、《一个排序算法比较的网站》 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：一些重要的算法 &#171; 葡萄树 On The Road &#8212; 一个会操作计算机的民工</title>
		<link>http://coolshell.cn/articles/536.html/comment-page-1#comment-11892</link>
		<dc:creator>一些重要的算法 &#171; 葡萄树 On The Road &#8212; 一个会操作计算机的民工</dc:creator>
		<pubDate>Tue, 19 Oct 2010 14:08:46 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=536#comment-11892</guid>
		<description>[...] 关于排序算法，你可以看看本站的这几篇文章《一个显示排序过程的Python脚本》、《一个排序算法比较的网站》 [...]</description>
		<content:encoded><![CDATA[<p>[...] 关于排序算法，你可以看看本站的这几篇文章《一个显示排序过程的Python脚本》、《一个排序算法比较的网站》 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：一些重要的算法 : 凯丁同学的转载</title>
		<link>http://coolshell.cn/articles/536.html/comment-page-1#comment-8334</link>
		<dc:creator>一些重要的算法 : 凯丁同学的转载</dc:creator>
		<pubDate>Fri, 30 Jul 2010 17:48:39 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=536#comment-8334</guid>
		<description>[...] 关于排序算法，你可以看看本站的这几篇文章《一个显示排序过程的Python脚本》、《一个排序算法比较的网站》 [...]</description>
		<content:encoded><![CDATA[<p>[...] 关于排序算法，你可以看看本站的这几篇文章《一个显示排序过程的Python脚本》、《一个排序算法比较的网站》 [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

