This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: 1 Lecture 6 Critical Path Method Acyclic directed graphs So far we computed shortest paths in undirected graphs with nonnegative edge costs. Let’s look at acyclic directed graphs. directed path not a directed path directed cycle not a directed cycle Acyclic directed graphs have no directed cycles. 2 Acyclic directed graphs Problem: Given an acyclic directed graph, find the length of shortest path from one node to all others. 1 4 3 2 7 6 5 8 4 1 2 2 5 13 1 11 8 1 6 7 9 3 Note: In acyclic directed graphs we can number the nodes 1,2,...,n such that implies i<j. Acyclic directed graphs i j Why? 1) there must be a node with no incoming arc (why?) 2) Label this with number 1, and delete all outgoing edges. Then, 1) applies again – number this node with the next higher number. Etc... 1 4 3 2 7 6 5 8 4 1 2 2 5 13 1 11 8 1 6 7 9 3 1 4 1 2 2 5 13 1 11 8 1 6 7 9 3 1 4 1 2 2 5 13 1 11 8 1 6 7 9 3 2 1 4 1 2 2 5 13 1 11 8 1 6 7 9 3 2 3 1 2 3 4 5 6 7 8 4 1 2 2 5 13 1 11 8 1 6 7 9 3 3 1 2 3 4 5 6...
View
Full
Document
This note was uploaded on 02/23/2008 for the course ENGRI 1101 taught by Professor Trotter during the Spring '05 term at Cornell.
 Spring '05
 TROTTER

Click to edit the document details