<?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: Recursion &amp; bad examples</title>
	<atom:link href="http://diovo.com/2009/11/recursion-bad-examples/feed/" rel="self" type="application/rss+xml" />
	<link>http://diovo.com/2009/11/recursion-bad-examples/</link>
	<description>Startups, Programming and stuff...</description>
	<lastBuildDate>Sun, 20 May 2012 07:14:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Recursion &#124; What Are You Looking For?</title>
		<link>http://diovo.com/2009/11/recursion-bad-examples/comment-page-1/#comment-2261</link>
		<dc:creator>Recursion &#124; What Are You Looking For?</dc:creator>
		<pubDate>Sun, 03 Apr 2011 02:00:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.diovo.com/?p=978#comment-2261</guid>
		<description>[...] The better path &#105;&#115; &#116;&#111; take &#097; survey of &#8230;  http://blog.fogus.me/  Recursion &amp; &#098;&#097;&#100; examples &#124; Diovo  Nov 6, 2009 Even though I agree that recursion &#105;&#115; not the right &#119;&#097;&#121; [...]</description>
		<content:encoded><![CDATA[<p>[...] The better path &#105;&#115; &#116;&#111; take &#097; survey of &#8230;  <a href="http://blog.fogus.me/" rel="nofollow">http://blog.fogus.me/</a>  Recursion &amp; &#098;&#097;&#100; examples | Diovo  Nov 6, 2009 Even though I agree that recursion &#105;&#115; not the right &#119;&#097;&#121; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Qwerty</title>
		<link>http://diovo.com/2009/11/recursion-bad-examples/comment-page-1/#comment-1957</link>
		<dc:creator>Qwerty</dc:creator>
		<pubDate>Thu, 17 Mar 2011 02:59:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.diovo.com/?p=978#comment-1957</guid>
		<description>One of the first things I noticed when I read this article was the statement that  modern PCs can&#039;t even calculate the 50th Fibonacci number using recursion.  Since I&#039;m a person who likes a challenge, I got out my trusty 15 MHz calculator running a limited form of BASIC.

The result: It took slightly less than 10 seconds with a simple arbitrary precision addition routine to calculate the 100th Fibonacci number (354,224,848,179,261,915,075). I&#039;m sure any modern computer running a practical language could do the same thing in under a second. Thinking it over, Assembly language would actually be the perfect language for such a routine.

Anyway, it&#039;s more efficient (in higher level languages) to use a function that will return F(n), but recursion isn&#039;t a half bad way to learn things like how to get around data limits.</description>
		<content:encoded><![CDATA[<p>One of the first things I noticed when I read this article was the statement that  modern PCs can&#8217;t even calculate the 50th Fibonacci number using recursion.  Since I&#8217;m a person who likes a challenge, I got out my trusty 15 MHz calculator running a limited form of BASIC.</p>
<p>The result: It took slightly less than 10 seconds with a simple arbitrary precision addition routine to calculate the 100th Fibonacci number (354,224,848,179,261,915,075). I&#8217;m sure any modern computer running a practical language could do the same thing in under a second. Thinking it over, Assembly language would actually be the perfect language for such a routine.</p>
<p>Anyway, it&#8217;s more efficient (in higher level languages) to use a function that will return F(n), but recursion isn&#8217;t a half bad way to learn things like how to get around data limits.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sabithpocker</title>
		<link>http://diovo.com/2009/11/recursion-bad-examples/comment-page-1/#comment-1639</link>
		<dc:creator>sabithpocker</dc:creator>
		<pubDate>Thu, 18 Feb 2010 22:07:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.diovo.com/?p=978#comment-1639</guid>
		<description>We are not trying to &#039;calculate&#039; Fibonacci numbers using computer.. are we?
We are instead studying a concept called &#039;recursion&#039;.</description>
		<content:encoded><![CDATA[<p>We are not trying to &#8216;calculate&#8217; Fibonacci numbers using computer.. are we?<br />
We are instead studying a concept called &#8216;recursion&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Wong</title>
		<link>http://diovo.com/2009/11/recursion-bad-examples/comment-page-1/#comment-1638</link>
		<dc:creator>Jamie Wong</dc:creator>
		<pubDate>Sat, 12 Dec 2009 08:45:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.diovo.com/?p=978#comment-1638</guid>
		<description>While the best algorithm for the generation of the fibonacci sequence is not a recursive algorithm, the fibonacci sequence is still a very useful example of explaining recursion. For people who are seeing recursion for the first time, it&#039;s something very easy to visualize and has a low enough number of recursive calls as to make drawing the recursion tree feasible.

The way I&#039;ve seen it taught in various places normally will use the fibonacci sequence as a segue into dynamic programming and memoization. Because the recursive algorithm is so terrible, it makes an excellent example of how performance can be drastically improved by preventing duplicate calls.

Factorial and addition do not lend themselves to such a segue, and are therefore less commonly used. Also, when doing introductory programming courses - doing factorial will be limited far sooner by the capacity of integers than it will be by computational complexity.</description>
		<content:encoded><![CDATA[<p>While the best algorithm for the generation of the fibonacci sequence is not a recursive algorithm, the fibonacci sequence is still a very useful example of explaining recursion. For people who are seeing recursion for the first time, it&#8217;s something very easy to visualize and has a low enough number of recursive calls as to make drawing the recursion tree feasible.</p>
<p>The way I&#8217;ve seen it taught in various places normally will use the fibonacci sequence as a segue into dynamic programming and memoization. Because the recursive algorithm is so terrible, it makes an excellent example of how performance can be drastically improved by preventing duplicate calls.</p>
<p>Factorial and addition do not lend themselves to such a segue, and are therefore less commonly used. Also, when doing introductory programming courses &#8211; doing factorial will be limited far sooner by the capacity of integers than it will be by computational complexity.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niyaz PK</title>
		<link>http://diovo.com/2009/11/recursion-bad-examples/comment-page-1/#comment-1637</link>
		<dc:creator>Niyaz PK</dc:creator>
		<pubDate>Sat, 12 Dec 2009 03:28:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.diovo.com/?p=978#comment-1637</guid>
		<description>sabithpocker,

Even though the definition of Fibonacci is recursive, it does not mean that you can compute Fibonacci numbers using recursion.</description>
		<content:encoded><![CDATA[<p>sabithpocker,</p>
<p>Even though the definition of Fibonacci is recursive, it does not mean that you can compute Fibonacci numbers using recursion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sabithpocker</title>
		<link>http://diovo.com/2009/11/recursion-bad-examples/comment-page-1/#comment-1636</link>
		<dc:creator>sabithpocker</dc:creator>
		<pubDate>Fri, 11 Dec 2009 17:10:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.diovo.com/?p=978#comment-1636</guid>
		<description>First thing : stop thinking that those who make syllabus/curriculum are fools or outdated, they know more than you in programming(i refer to those who make syllabus and curriculum not your lecturer at coll)

Second thing : Before appreciating think not even once, but before criticizing think a thousand times.

Third thing :  Search Google, Refer Wikipedia and then post what you feel ,ie. when you do tech blog.

Fourth point : Fibonacci is inherently recursive, find what is recursion in mathematics, recurrence relations and recursive functions.

Fifth point : I have made all of the above mentioned mistakes myself. Keep rocking dude!!</description>
		<content:encoded><![CDATA[<p>First thing : stop thinking that those who make syllabus/curriculum are fools or outdated, they know more than you in programming(i refer to those who make syllabus and curriculum not your lecturer at coll)</p>
<p>Second thing : Before appreciating think not even once, but before criticizing think a thousand times.</p>
<p>Third thing :  Search Google, Refer Wikipedia and then post what you feel ,ie. when you do tech blog.</p>
<p>Fourth point : Fibonacci is inherently recursive, find what is recursion in mathematics, recurrence relations and recursive functions.</p>
<p>Fifth point : I have made all of the above mentioned mistakes myself. Keep rocking dude!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niyaz PK</title>
		<link>http://diovo.com/2009/11/recursion-bad-examples/comment-page-1/#comment-1635</link>
		<dc:creator>Niyaz PK</dc:creator>
		<pubDate>Sat, 07 Nov 2009 18:14:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.diovo.com/?p=978#comment-1635</guid>
		<description>Binny,
As Amarghosh pointed out, factorial is a good example.

Another very simple example is addition:

&lt;code&gt;add(0, x) = x,
add(n, x) = add(n-1, x) + 1&lt;/code&gt;

As far as I know this example is often used in computer science courses in many good universities around the world.

I think Fibonacci should be taught as an example for bad use of recursion. Of course the point is that there is a huge time-space trade-off in using recursion and that should be taught correctly.</description>
		<content:encoded><![CDATA[<p>Binny,<br />
As Amarghosh pointed out, factorial is a good example.</p>
<p>Another very simple example is addition:</p>
<p><code>add(0, x) = x,<br />
add(n, x) = add(n-1, x) + 1</code></p>
<p>As far as I know this example is often used in computer science courses in many good universities around the world.</p>
<p>I think Fibonacci should be taught as an example for bad use of recursion. Of course the point is that there is a huge time-space trade-off in using recursion and that should be taught correctly.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

