<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:media="http://search.yahoo.com/mrss/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>选择排序 - 四号程序员</title>
	<atom:link href="https://www.coder4.com/archives/tag/%E9%80%89%E6%8B%A9%E6%8E%92%E5%BA%8F/feed" rel="self" type="application/rss+xml" />
	<link>https://www.coder4.com</link>
	<description>Keep It Simple and Stupid</description>
	<lastBuildDate>Sun, 16 Oct 2011 15:41:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>算法技术手册 – 排序 – 选择排序</title>
		<link>https://www.coder4.com/archives/2167</link>
					<comments>https://www.coder4.com/archives/2167#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Sun, 18 Sep 2011 09:50:50 +0000</pubDate>
				<category><![CDATA[算法&数据结构]]></category>
		<category><![CDATA[实现]]></category>
		<category><![CDATA[排序]]></category>
		<category><![CDATA[算法技术手册]]></category>
		<category><![CDATA[选择排序]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=2167</guid>

					<description><![CDATA[选择排序，思想非常简单，分为selectMax和selectSort两个部分。 selectMax： 每次选择区间内最大的数，返回其Index selectSort 1、从右到左依次扫描i（除idx=0，因为选到最后，最小的一定在最左边），规定区间为[0, i] 2、调用selectMax，获得最大的maxIndex。 3、这个i位置应该是第i大的数的位置，也就是maxIndex的数的位置，因此，如果i!=maxIndex，swap之。 算法复杂度，不管是最坏、平均还是最好[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/2167/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
