Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
courses:cs211:winter2011:journals:david:chapter6 [2011/03/30 02:29] – [6.8 - Shortest Paths in Graphs] margoliesd | courses:cs211:winter2011:journals:david:chapter6 [2011/04/06 03:26] (current) – [6.10 - Negative Cycles in a Graph] margoliesd | ||
---|---|---|---|
Line 54: | Line 54: | ||
Readability: | Readability: | ||
+ | |||
+ | ====6.9 - Shortest Paths and Distance Vector Protocols==== | ||
+ | |||
+ | An application for Shortest Paths algorithm we used in the previous section is for a network of routers (nodes) with direct links (edges). The cost of an edge is the delay of the link and we look for a path with the shortest delay. While Dijkstra' | ||
+ | |||
+ | Readability: | ||
+ | |||
+ | ====6.10 - Negative Cycles in a Graph==== | ||
+ | |||
+ | If we augment a graph by adding a sink node that has a path from every other node leading to it and the augmented graph has a negative cycle, then the original graph must have a negative cycle too. If we have a negative cycle and we are looking for a path from one node to the sink that passes through the cycle, as we increase the number of allowable edges, the cycle tends toward negative infinity. However, if there are no negative cycles, then opt(i, | ||
+ | |||
+ | Readability: |