<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CS502 GDB 1 Solution and Discussion]]></title><description><![CDATA[<p dir="auto">Consider that a tourist wants to travel between Karachi and Hunza cities in minimum possible span. The road map available has marked distance between each pair of adjacent cities. The time available to the tourist has limited and he/she require to find the shortest possible route between Karachi and Hunza.</p>
<p dir="auto">In the given scenario, the possible solution may be adopted from the following set of algorithms.</p>
<pre><code>Bellman ford’s Algorithm
Flyod Warshal’s Algorithm
Dijkstra's Algorithm
Breadth-first-search algorithm
</code></pre>
<p dir="auto">You are required to select the possible and most reasonable algorithm for the given scenario. Support you answer with solid reasons.</p>
]]></description><link>https://community.secnto.com//topic/1474/cs502-gdb-1-solution-and-discussion</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 20:45:45 GMT</lastBuildDate><atom:link href="https://community.secnto.com//topic/1474.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 03 Feb 2020 17:13:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CS502 GDB 1 Solution and Discussion on Wed, 05 Feb 2020 19:30:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zareen" aria-label="Profile: zareen">@<bdi>zareen</bdi></a> said in <a href="/post/3879">CS502 GDB 1 Solution and Discussion</a>:</p>
<blockquote>
<p dir="auto">require to find the shortest possible route algorithm</p>
</blockquote>
<p dir="auto">Dijkstra’s algorithm (or Dijkstra’s Shortest Path First algorithm, SPF algorithm) is an algorithm for finding the shortest paths between nodes in a graph, which may represent, for example, road networks. It was conceived by computer scientist Edsger W. Dijkstra in 1956 and published three years later.<br />
<a href="https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm" target="_blank" rel="noopener noreferrer nofollow ugc">Reff</a></p>
<p dir="auto">Dijkstra’s algorithm to find the shortest path between a and b. It picks the unvisited vertex with the low distance, calculates the distance through it to each unvisited neighbor, and updates the neighbor’s distance if smaller. Mark visited (set to red) when done with neighbors.<br />
<img src="https://i.imgur.com/iKmWWZF.gif" alt="220px-Dijkstra_Animation.gif" class=" img-fluid img-markdown" /><br />
Dijkstra’s algorithm</p>
<p dir="auto">llustration of Dijkstra’s algorithm finding a path from a start node (lower left, red) to a goal node (upper right, green) in a robot motion planning problem. Open nodes represent the “tentative” set (aka set of “unvisited” nodes). Filled nodes are visited ones, with color representing the distance: the greener, the closer. Nodes in all the different directions are explored uniformly, appearing more-or-less as a circular wavefront as Dijkstra’s algorithm uses a heuristic identically equal to 0.<br />
<img src="https://i.imgur.com/DB15LaU.gif" alt="Dijkstras_progress_animation.gif" class=" img-fluid img-markdown" /></p>
<p dir="auto">A demo of Dijkstra’s algorithm based on Euclidean distance. Red lines are the shortest path covering, i.e., connecting u and prev[u]. Blue lines indicate where relaxing happens, i.e., connecting v with a node u in Q, which gives a shorter path from the source to v.<br />
<img src="https://i.imgur.com/aycA5pg.gif" alt="DijkstraDemo.gif" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.secnto.com//post/3929</link><guid isPermaLink="true">https://community.secnto.com//post/3929</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Wed, 05 Feb 2020 19:30:55 GMT</pubDate></item></channel></rss>