<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Dynamic programming problem - optimal route time' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Dynamic programming problem - optimal route time' posted on the 'Algorithms' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Fri, 24 May 2013 23:54:43 -0700</pubDate>
    <lastBuildDate>Fri, 24 May 2013 23:54:43 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Dynamic programming problem - optimal route time</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/428471/428471/dynamic-programming-problem---optimal-route-time/</link>
      <description>Hello,&lt;br /&gt;
&lt;br /&gt;
I have following problem to solve:&lt;br /&gt;
Please take a look at the photo:&lt;br /&gt;
&lt;a href="http://www.voila.pl/401/ctbd9/?1"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Input:&lt;br /&gt;
4 - number of stations&lt;br /&gt;
3 - number of changes between stations&lt;br /&gt;
15 3 2 10 7 - time of traveling betwen bus station&lt;br /&gt;
2 25 30 1 10 - time of traveling betwen railway station&lt;br /&gt;
7 10 5 1 - time to travel from bust station to railwey station&lt;br /&gt;
10 8 5 5 - time to travel form railwey station to bus station&lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
33&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I need to solve the problem using dynamic programming.&lt;br /&gt;
I write some code in ansi C that works properly but for input files with number of stations larger than 100 the algorithm becoming very very slov. How to solve the task properly? Any Tips?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Paul&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Algorithms/428471/428471/dynamic-programming-problem---optimal-route-time/</guid>
      <pubDate>Thu, 17 May 2012 09:33:26 -0700</pubDate>
      <category>Algorithms</category>
    </item>
  </channel>
</rss>