<?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: traveling elephpant</title>
	<atom:link href="http://www.underdevelopment.eu/2010/06/30/travelingelephpant/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.underdevelopment.eu/2010/06/30/travelingelephpant/</link>
	<description>web development blog</description>
	<lastBuildDate>Thu, 02 Feb 2012 12:48:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: admin</title>
		<link>http://www.underdevelopment.eu/2010/06/30/travelingelephpant/comment-page-1/#comment-51947</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 02 Feb 2012 12:48:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.underdevelopment.eu/?p=239#comment-51947</guid>
		<description>&lt;a href=&quot;#comment-51904&quot; rel=&quot;nofollow&quot;&gt;@Dave Edwards&lt;/a&gt; 
SplFixedArray were introduced in PHP 5.3, make sure you are running 5.3 or newer.</description>
		<content:encoded><![CDATA[<p><a href="#comment-51904" rel="nofollow">@Dave Edwards</a><br />
SplFixedArray were introduced in PHP 5.3, make sure you are running 5.3 or newer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Edwards</title>
		<link>http://www.underdevelopment.eu/2010/06/30/travelingelephpant/comment-page-1/#comment-51904</link>
		<dc:creator>Dave Edwards</dc:creator>
		<pubDate>Sun, 29 Jan 2012 19:29:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.underdevelopment.eu/?p=239#comment-51904</guid>
		<description>Class &#039;SplFixedArray&#039; not found...

$nodeTrail = new SplFixedArray(count($dataset)+1);

Is there is a class missing?

Thanks

Dave</description>
		<content:encoded><![CDATA[<p>Class &#8216;SplFixedArray&#8217; not found&#8230;</p>
<p>$nodeTrail = new SplFixedArray(count($dataset)+1);</p>
<p>Is there is a class missing?</p>
<p>Thanks</p>
<p>Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Thompson</title>
		<link>http://www.underdevelopment.eu/2010/06/30/travelingelephpant/comment-page-1/#comment-48872</link>
		<dc:creator>Andy Thompson</dc:creator>
		<pubDate>Sun, 04 Jul 2010 09:01:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.underdevelopment.eu/?p=239#comment-48872</guid>
		<description>Ouch, that must be very frustrating.

I had another look at your algorithm, and came up with changes to my own. The speed I calculated from my own ratio is very subjective though.

Check it out in my comments on my blog article

http://andytson.com/blog/2010/05/travelling-elephpant-solutions/comment-page-1/#comment-31</description>
		<content:encoded><![CDATA[<p>Ouch, that must be very frustrating.</p>
<p>I had another look at your algorithm, and came up with changes to my own. The speed I calculated from my own ratio is very subjective though.</p>
<p>Check it out in my comments on my blog article</p>
<p><a href="http://andytson.com/blog/2010/05/travelling-elephpant-solutions/comment-page-1/#comment-31" rel="nofollow">http://andytson.com/blog/2010/05/travelling-elephpant-solutions/comment-page-1/#comment-31</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.underdevelopment.eu/2010/06/30/travelingelephpant/comment-page-1/#comment-48870</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 01 Jul 2010 08:52:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.underdevelopment.eu/?p=239#comment-48870</guid>
		<description>After Ivo posted on twitter that some entries were calculating one location too little I got a nagging feeling and checked my code. 

On line 200, where I add the final node to the completed path I actually overwrote the last location instead of adding it.

            $nodeTrail[$step++] = $endNodeKey;
vs.
            $nodeTrail[++$step] = $endNodeKey;

I never got my exact speed score, so I don&#039;t know the numbers. I do know I was a little more then twice as slow as Remi&#039;s entry which was 11s. So my speed was probably ~25 seconds or so.</description>
		<content:encoded><![CDATA[<p>After Ivo posted on twitter that some entries were calculating one location too little I got a nagging feeling and checked my code. </p>
<p>On line 200, where I add the final node to the completed path I actually overwrote the last location instead of adding it.</p>
<p>            $nodeTrail[$step++] = $endNodeKey;<br />
vs.<br />
            $nodeTrail[++$step] = $endNodeKey;</p>
<p>I never got my exact speed score, so I don&#8217;t know the numbers. I do know I was a little more then twice as slow as Remi&#8217;s entry which was 11s. So my speed was probably ~25 seconds or so.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Thompson</title>
		<link>http://www.underdevelopment.eu/2010/06/30/travelingelephpant/comment-page-1/#comment-48869</link>
		<dc:creator>Andy Thompson</dc:creator>
		<pubDate>Thu, 01 Jul 2010 06:14:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.underdevelopment.eu/?p=239#comment-48869</guid>
		<description>Hi Erik,

I noticed you picked what looks like the same algorithm as mine, though mine was optimised for complexity and LOC rather than speed.

Did you find and fix the bug? How was the speed of it in the end?


Andy</description>
		<content:encoded><![CDATA[<p>Hi Erik,</p>
<p>I noticed you picked what looks like the same algorithm as mine, though mine was optimised for complexity and LOC rather than speed.</p>
<p>Did you find and fix the bug? How was the speed of it in the end?</p>
<p>Andy</p>
]]></content:encoded>
	</item>
</channel>
</rss>

