Professional Documents
Culture Documents
Week 11 Lecture 18
algorithm?
• What is Critical Path Method?
• What is Critical Path?
• How we identify Critical Path?
• What is multiple-source, multiple-sink maximum-
flow problem?
• What is supply demand problem?
2
All pairs shortest paths
• We can solve an all-pairs shortest-paths problem
Design and Analysis of Algorithms
• Example
– This problem might arise in making a table of
distances between all pairs of cities for a road atlas.
4
Floyd-Warshall algorithm
• A dynamic-programming formulation to solve the
Design and Analysis of Algorithms
– Predecessor matrix Π
6
Floyd-Warshall algorithm
• Creating predecessor matrix
Design and Analysis of Algorithms
7
Design and Analysis of Algorithms
Floyd-Warshall algorithm
8
Design and Analysis of Algorithms
Floyd-Warshall algorithm
9
Sources used: Books
• Introduction to algorithms
Design and Analysis of Algorithms
• Introduction to Algorithms
– Jon Kleinberg, Eva Tardos
• Algorithms
– S. Dasgupta, C. H. Papadimitriou, and U. V. Vazirani
10
Sources used: Books
• Algorithms and Data Structures
Design and Analysis of Algorithms
11
Sources used: Online Links
• Algorithms: Design and Analysis, Part 1
Design and Analysis of Algorithms
– https://www.coursera.org/course/algo
• Algorithms: Design and Analysis, Part 2
– https://www.coursera.org/course/algo2
• Lecture Slides for Algorithm Design
– http://www.cs.princeton.edu/~wayne/kleinberg-
tardos/
• Course Notes - CS 161 - Design and Analysis of
Algorithms
– http://www.ics.uci.edu/~goodrich/teach/cs161/note
s/ 12
Design and Analysis of Algorithms
Sources used:
13