<?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: Introduction to Dynamic Programming</title>
	<atom:link href="http://20bits.com/articles/introduction-to-dynamic-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://20bits.com/articles/introduction-to-dynamic-programming/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=introduction-to-dynamic-programming</link>
	<description>Driven by Data</description>
	<lastBuildDate>Sat, 09 Jul 2011 18:30:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Jeremy Wilson</title>
		<link>http://20bits.com/articles/introduction-to-dynamic-programming/comment-page-1/#comment-5586</link>
		<dc:creator>Jeremy Wilson</dc:creator>
		<pubDate>Wed, 08 Jun 2011 16:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://20bits.com/2007/05/08/introduction-to-dynamic-programming/#comment-5586</guid>
		<description>&gt; What if all the numbers in the array are negative?

Then the &quot;largest subarray with the maximum sum&quot; will be an array containing just the single &quot;largest&quot; number (i.e. closest to zero).   e.g. in the array [-5,-6,-2,-3]  the result would be [-2], because it is the largest, and adding anything more to it would make it smaller (more negative).  I think his python code works correctly for this case.</description>
		<content:encoded><![CDATA[<p>&gt; What if all the numbers in the array are negative?</p>
<p>Then the &#8220;largest subarray with the maximum sum&#8221; will be an array containing just the single &#8220;largest&#8221; number (i.e. closest to zero).   e.g. in the array [-5,-6,-2,-3]  the result would be [-2], because it is the largest, and adding anything more to it would make it smaller (more negative).  I think his python code works correctly for this case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://20bits.com/articles/introduction-to-dynamic-programming/comment-page-1/#comment-5568</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 18 May 2011 01:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://20bits.com/2007/05/08/introduction-to-dynamic-programming/#comment-5568</guid>
		<description> Atpresent. on get older. goodness me form welcomes be only a little more low-key. I personally start to wearsophisticated basic color during. on some courtly pandora metallic bracelets .
From time to time. I’d would rather &lt;a href=&quot;http://www.pandoraukshop.com/pandora-charms.html&quot; rel=&quot;nofollow&quot;&gt;&lt;b&gt;pandora charms sale&lt;/b&gt;&lt;/a&gt;purchase an enormous red-colored hand-bag that i won`teconomic utilization most probably. as well as toss directly towards water closetbecause various years. purchase a manufacturer new neutral-colored ladies handbag &lt;a href=&quot;http://www.pandoraukshop.com/pandora-bracelets.html&quot; rel=&quot;nofollow&quot;&gt;&lt;b&gt;pandora bracelets on sale&lt;/b&gt;&lt;/a&gt;possessing pandora silver valuable metal charms beat would appear more from significance while have the ability&lt;a href=&quot;http://www.pandoraukshop.com/pandora-bracelets.html&quot; rel=&quot;nofollow&quot;&gt;&lt;b&gt;pandora bracelets outlet&lt;/b&gt;&lt;/a&gt; to pat it it does not create a difference throughout the evening or possibly overnight.</description>
		<content:encoded><![CDATA[<p> Atpresent. on get older. goodness me form welcomes be only a little more low-key. I personally start to wearsophisticated basic color during. on some courtly pandora metallic bracelets .<br />
From time to time. I’d would rather <a href="http://www.pandoraukshop.com/pandora-charms.html" rel="nofollow"><b>pandora charms sale</b></a>purchase an enormous red-colored hand-bag that i won`teconomic utilization most probably. as well as toss directly towards water closetbecause various years. purchase a manufacturer new neutral-colored ladies handbag <a href="http://www.pandoraukshop.com/pandora-bracelets.html" rel="nofollow"><b>pandora bracelets on sale</b></a>possessing pandora silver valuable metal charms beat would appear more from significance while have the ability<a href="http://www.pandoraukshop.com/pandora-bracelets.html" rel="nofollow"><b>pandora bracelets outlet</b></a> to pat it it does not create a difference throughout the evening or possibly overnight.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chad salvador</title>
		<link>http://20bits.com/articles/introduction-to-dynamic-programming/comment-page-1/#comment-5221</link>
		<dc:creator>chad salvador</dc:creator>
		<pubDate>Tue, 30 Nov 2010 05:43:30 +0000</pubDate>
		<guid isPermaLink="false">http://20bits.com/2007/05/08/introduction-to-dynamic-programming/#comment-5221</guid>
		<description>is there  a ydynamic member in variable if there please give me one</description>
		<content:encoded><![CDATA[<p>is there  a ydynamic member in variable if there please give me one</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amdkfgi</title>
		<link>http://20bits.com/articles/introduction-to-dynamic-programming/comment-page-1/#comment-5222</link>
		<dc:creator>Amdkfgi</dc:creator>
		<pubDate>Sun, 28 Nov 2010 16:33:35 +0000</pubDate>
		<guid isPermaLink="false">http://20bits.com/2007/05/08/introduction-to-dynamic-programming/#comment-5222</guid>
		<description>its the tree between my legs, consist of a big banana and two eggs</description>
		<content:encoded><![CDATA[<p>its the tree between my legs, consist of a big banana and two eggs</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarthakgovind</title>
		<link>http://20bits.com/articles/introduction-to-dynamic-programming/comment-page-1/#comment-5195</link>
		<dc:creator>Sarthakgovind</dc:creator>
		<pubDate>Wed, 27 Oct 2010 10:51:13 +0000</pubDate>
		<guid isPermaLink="false">http://20bits.com/2007/05/08/introduction-to-dynamic-programming/#comment-5195</guid>
		<description>what is definition of optimal binary search tree and its algorithm described?</description>
		<content:encoded><![CDATA[<p>what is definition of optimal binary search tree and its algorithm described?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vivek</title>
		<link>http://20bits.com/articles/introduction-to-dynamic-programming/comment-page-1/#comment-4997</link>
		<dc:creator>vivek</dc:creator>
		<pubDate>Wed, 12 May 2010 13:10:26 +0000</pubDate>
		<guid isPermaLink="false">http://20bits.com/2007/05/08/introduction-to-dynamic-programming/#comment-4997</guid>
		<description>thanks..it helped a lot</description>
		<content:encoded><![CDATA[<p>thanks..it helped a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nelson</title>
		<link>http://20bits.com/articles/introduction-to-dynamic-programming/comment-page-1/#comment-4947</link>
		<dc:creator>Nelson</dc:creator>
		<pubDate>Sun, 04 Apr 2010 02:02:47 +0000</pubDate>
		<guid isPermaLink="false">http://20bits.com/2007/05/08/introduction-to-dynamic-programming/#comment-4947</guid>
		<description>Again thanks, just thought I might add though that my only feedback would be perhaps writing the example code in a more readable rather than compact way could help. e.g. &lt;br&gt;for i in range(len(a)):&lt;br&gt;        t = t + a[i]&lt;br&gt;        if t &gt; s:&lt;br&gt;            bounds = (j, i+1)&lt;br&gt;            s = t&lt;br&gt;        if t &lt; 0:&lt;br&gt;            t = 0&lt;br&gt;            j = i+1&lt;br&gt;    return (s, bounds)</description>
		<content:encoded><![CDATA[<p>Again thanks, just thought I might add though that my only feedback would be perhaps writing the example code in a more readable rather than compact way could help. e.g. <br />for i in range(len(a)):<br />        t = t + a[i]<br />        if t &gt; s:<br />            bounds = (j, i+1)<br />            s = t<br />        if t &lt; 0:<br />            t = 0<br />            j = i+1<br />    return (s, bounds)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nelson</title>
		<link>http://20bits.com/articles/introduction-to-dynamic-programming/comment-page-1/#comment-4939</link>
		<dc:creator>Nelson</dc:creator>
		<pubDate>Sun, 04 Apr 2010 01:33:06 +0000</pubDate>
		<guid isPermaLink="false">http://20bits.com/2007/05/08/introduction-to-dynamic-programming/#comment-4939</guid>
		<description>Buddy quit whining over free lollies. This guy&#039;s giving helpful information out for free, if you don&#039;t like it then tough. Eat a dick or something. &lt;br&gt;By the way thanks for the info jesse, I&#039;m trying to get my head around dynamic programming and I appreciate the help.</description>
		<content:encoded><![CDATA[<p>Buddy quit whining over free lollies. This guy&#39;s giving helpful information out for free, if you don&#39;t like it then tough. Eat a dick or something. <br />By the way thanks for the info jesse, I&#39;m trying to get my head around dynamic programming and I appreciate the help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: swapneelpatil</title>
		<link>http://20bits.com/articles/introduction-to-dynamic-programming/comment-page-1/#comment-4876</link>
		<dc:creator>swapneelpatil</dc:creator>
		<pubDate>Fri, 05 Mar 2010 16:15:25 +0000</pubDate>
		<guid isPermaLink="false">http://20bits.com/2007/05/08/introduction-to-dynamic-programming/#comment-4876</guid>
		<description>I always tend to go for recursive functions, as they are easy to debug&lt;br&gt;&lt;br&gt;# s: new number in the seq&lt;br&gt;# s_1: the prev number in the sequence&lt;br&gt;# i : iterator, which can be eliminated &lt;br&gt;#     if implemented as a local function (like Scheme)&lt;br&gt;def fibo(n, i=1, s=1, s_1=0):&lt;br&gt;    if n &lt;= i: return s&lt;br&gt;    else: return fibo(n, i+1, s+s_1, s)&lt;br&gt;&lt;br&gt;print (fibo(10))</description>
		<content:encoded><![CDATA[<p>I always tend to go for recursive functions, as they are easy to debug</p>
<p># s: new number in the seq<br /># s_1: the prev number in the sequence<br /># i : iterator, which can be eliminated <br />#     if implemented as a local function (like Scheme)<br />def fibo(n, i=1, s=1, s_1=0):<br />    if n &lt;= i: return s<br />    else: return fibo(n, i+1, s+s_1, s)</p>
<p>print (fibo(10))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse Farmer</title>
		<link>http://20bits.com/articles/introduction-to-dynamic-programming/comment-page-1/#comment-4840</link>
		<dc:creator>Jesse Farmer</dc:creator>
		<pubDate>Sat, 06 Feb 2010 00:03:08 +0000</pubDate>
		<guid isPermaLink="false">http://20bits.com/2007/05/08/introduction-to-dynamic-programming/#comment-4840</guid>
		<description>Dynamic Programming is a type of D&amp;C algorithm, but it relies on the existence of overlapping subproblems.</description>
		<content:encoded><![CDATA[<p>Dynamic Programming is a type of D&#038;C algorithm, but it relies on the existence of overlapping subproblems.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

