This is an old revision of the document!


4.4. Shortest paths in a graph

The Problem

  • We are given a directed graph G = (V,E) with a starting node S.We assume that s has a path to every other node in G.
  • Each edge e has a length le≥ 0, which it the cost of traversing e.
  • For each path P, the length of P(l(P)) = ∑ of all edges in P.


–>Goal of the algorithm: Determine the shortest path from S to every other node in the graph.

courses/cs211/winter2012/journals/jeanpaul/chapterfour_sectioniv.1330479088.txt.gz · Last modified: 2012/02/29 01:31 by mugabej
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0