Lecture 37

Learning objectives

After this class, you should be able to:

  1. Given a DAG, show the steps in topologically sorting the vertices using the O(|V| + |E|) time algorithm.
  2. Give applications for topological sort.
  3. Given a graph and a source vertex, show the steps in finding unweighted shortest paths from the source to all other vertices.
  4. Give an application for the unweighted shortest path problem.
  5. Given a graph algorithm, choose a suitable data structure to represent the graph and analyze the time and space requirements.

Reading assignment

  1. Sections 9.2, 9.3.1.
  2. Lecture: Graphs.

Exercises and review questions


Last modified: 6 Dec 2011