Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
courses:cs211:winter2011:journals:wendy:chapter4 [2011/02/16 02:08] โ€“ [Section 4: Shortest Paths in a Graph] shangwcourses:cs211:winter2011:journals:wendy:chapter4 [2011/02/16 02:37] โ€“ [Section 4: Shortest Paths in a Graph] shangw
Line 27: Line 27:
 ===== Section 4: Shortest Paths in a Graph ===== ===== Section 4: Shortest Paths in a Graph =====
  
 +This section introduces the third example of greedy algorithm: finding the shortest paths.
  
 +The problem is just as what its name describes, given a directed graph, assigned a node s, how to find the path from s to every other node that is the "lightest". Dijkstra came up with an algorithm to solve the problem, namely, the Dijkstra algorithm. The idea of Dijkstra algorithm is to keep track of the current shortest path and keep updating during the exploration of the graph. 
courses/cs211/winter2011/journals/wendy/chapter4.txt ยท Last modified: 2011/03/02 04:59 by shangw
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0