ECE242 L29: Graph Traversal November 23, 2009
ECE 242 Data Structures
Lecture 29
Graph Traversal
ECE242 L29: Graph Traversal November 23, 2009
Overview °Problem: How can we efficiently visit all vertices in the graph? °Depth first search
- Quickly follow paths between vertices
°Breadth first search
- Visit all neighbors of a vertex
°Compact algorithms available to perform traversals
- Note Galaxy example and cheap flights example