Lecture 36

Learning objectives

After this class, you should be able to:

  1. Define a graph (undirected and directed), a vertex/node, and an edge.
  2. Given the figure of a graph, give its set of vertices and set of edges.
  3. Given the set of vertices and set of edges of a graph, draw a figure to show the graph.
  4. Given a graph, show its representations using an adjacency list and adjacency matrix. Also give the space required for each of those representations.
  5. Given a DAG, show the steps in topologically sorting the vertices, and give the time complexity of the algorithm.

Reading assignment

  1. Chapter 10, sections 9.1, 9.2.
  2. Lecture: Graphs.

Exercises and review questions


Last modified: 1 Dec 2011