<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"	>
<channel>
	<title>Comments on: New WordPress hotness</title>
	<atom:link href="http://www.kuliniewicz.org/blog/archives/2008/05/04/new-wordpress-hotness/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kuliniewicz.org/blog/archives/2008/05/04/new-wordpress-hotness/</link>
	<description>After all, it could only cost you your life, and you got that for free.</description>
	<lastBuildDate>Thu, 19 Jan 2012 00:09:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
	<item>
		<title>By: Paul Kuliniewicz</title>
		<link>http://www.kuliniewicz.org/blog/archives/2008/05/04/new-wordpress-hotness/comment-page-1/#comment-1913</link>
		<dc:creator>Paul Kuliniewicz</dc:creator>
		<pubDate>Sat, 10 May 2008 03:50:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.kuliniewicz.org/blog/?p=776#comment-1913</guid>
		<description>How the Fibonacci function works?  The invariant for the &lt;code&gt;for&lt;/code&gt; loop is that, after each iteration, &lt;code&gt;b&lt;/code&gt; is set to the &lt;code&gt;i&lt;/code&gt;th Fibonacci number, and &lt;code&gt;a&lt;/code&gt; is set to the (&lt;code&gt;i&lt;/code&gt;-1)th Fibonacci number.

The more obvious recursive definition is bad because you end up repeating a lot of work.  For example, &lt;code&gt;fibonacci(10)&lt;/code&gt; would need to compute &lt;code&gt;fibonacci(8)&lt;/code&gt; and &lt;code&gt;fibonacci(9)&lt;/code&gt;, but &lt;code&gt;fibonacci(9)&lt;/code&gt; ends up calling &lt;code&gt;fibonacci(8)&lt;/code&gt; as well.  You end up running in &lt;a href=&quot;http://en.wikipedia.org/wiki/Big_O_notation&quot;&gt;O&lt;/a&gt;(&lt;a href=&quot;http://en.wikipedia.org/wiki/Golden_ratio&quot;&gt;&#966;&lt;/a&gt;&lt;sup&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sup&gt;) because of all the repeated work, instead of O(&lt;var&gt;n&lt;/var&gt;) like the iterative implementation, which only computes each intermediate Fibonacci number once.</description>
		<content:encoded><![CDATA[<p>How the Fibonacci function works?  The invariant for the <code>for</code> loop is that, after each iteration, <code>b</code> is set to the <code>i</code>th Fibonacci number, and <code>a</code> is set to the (<code>i</code>-1)th Fibonacci number.</p>
<p>The more obvious recursive definition is bad because you end up repeating a lot of work.  For example, <code>fibonacci(10)</code> would need to compute <code>fibonacci(8)</code> and <code>fibonacci(9)</code>, but <code>fibonacci(9)</code> ends up calling <code>fibonacci(8)</code> as well.  You end up running in <a href="http://en.wikipedia.org/wiki/Big_O_notation">O</a>(<a href="http://en.wikipedia.org/wiki/Golden_ratio">&phi;</a><sup><var>n</var></sup>) because of all the repeated work, instead of O(<var>n</var>) like the iterative implementation, which only computes each intermediate Fibonacci number once.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.kuliniewicz.org/blog/archives/2008/05/04/new-wordpress-hotness/comment-page-1/#comment-1911</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Sat, 10 May 2008 03:30:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.kuliniewicz.org/blog/?p=776#comment-1911</guid>
		<description>As usual, explain?</description>
		<content:encoded><![CDATA[<p>As usual, explain?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Kuliniewicz</title>
		<link>http://www.kuliniewicz.org/blog/archives/2008/05/04/new-wordpress-hotness/comment-page-1/#comment-1896</link>
		<dc:creator>Paul Kuliniewicz</dc:creator>
		<pubDate>Mon, 05 May 2008 00:53:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.kuliniewicz.org/blog/?p=776#comment-1896</guid>
		<description>Hmm, if you look at the post in the RSS feed, the colors don&#039;t show up, since the CSS doesn&#039;t get pulled in from there.  Oh well.</description>
		<content:encoded><![CDATA[<p>Hmm, if you look at the post in the RSS feed, the colors don&#8217;t show up, since the CSS doesn&#8217;t get pulled in from there.  Oh well.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

