<?xml version="1.0" encoding="iso-8859-1"?><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: Finding the Median in Linear time</title>
	<atom:link href="http://www.tomfotherby.com/blog/index.php/2007/08/finding-the-median-in-linear-time/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tomfotherby.com/blog/index.php/2007/08/finding-the-median-in-linear-time/</link>
	<description>My little place in cyberspace</description>
	<lastBuildDate>Tue, 10 Jan 2012 23:59:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Vladimir</title>
		<link>http://www.tomfotherby.com/blog/index.php/2007/08/finding-the-median-in-linear-time/comment-page-1/#comment-8907</link>
		<dc:creator>Vladimir</dc:creator>
		<pubDate>Sat, 18 Dec 2010 15:55:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.tomfotherby.com/blog/index.php/2007/08/finding-the-median-in-linear-time/#comment-8907</guid>
		<description>These algorithms do not run in linear time.
First of all,
int a = *A.begin();
-- is a bad choice: for a sorted array this algorithm will find median in quadratic(!) time.
int a = A[random()%A.size()];
-- a bit better, but worst case is still quadratic, though expected time is linear.
See wikipedia for better (and more complex) choices.</description>
		<content:encoded><![CDATA[<p>These algorithms do not run in linear time.<br />
First of all,<br />
int a = *A.begin();<br />
&#8211; is a bad choice: for a sorted array this algorithm will find median in quadratic(!) time.<br />
int a = A[random()%A.size()];<br />
&#8211; a bit better, but worst case is still quadratic, though expected time is linear.<br />
See wikipedia for better (and more complex) choices.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

