Presentation is loading. Please wait.

Presentation is loading. Please wait.

Foundations of Data Structures Practical Session #13 Graphs Algorithms.

Similar presentations


Presentation on theme: "Foundations of Data Structures Practical Session #13 Graphs Algorithms."— Presentation transcript:

1 Foundations of Data Structures Practical Session #13 Graphs Algorithms

2 Motivation 1.Network routing 2.Roads and train rails infrastructure planning 3.Most efficient distribution route for Coca-Cola truck driver 4.Representing constraints and dependencies between processes 5.And many more… 2

3 Definitions 3

4 Breadth-First Search 4 http://www.cs.usfca.edu/~galles/visualization/BFS.html

5 Depth-First Search 5 http://www.cs.usfca.edu/~galles/visualization/DFS.html

6 Depth-First Search 6

7 Question 0 7

8 Question 1 8

9 Question 1 solution 9

10 Question 2 10

11 Question 2 solution 11

12 Question 2 solution 12 a c t b 2 1 a c t b 1 2 cb ab s 1 s

13 Question 2 solution 13

14 Question 2 solution 14

15 Question 2 solution 15

16 Question 4 16

17 Question 4 solution 17

18 Question 4 solution 18


Download ppt "Foundations of Data Structures Practical Session #13 Graphs Algorithms."

Similar presentations


Ads by Google