vu

Notes for Vanderbilt University

View the Project on GitHub

Lecture 02-08-17

Discuss take home exam 2

  1. Was late to class
  2. Sorting adjacency lists
    • Go through adjacency lists in order and always adding in order
    • Don’t need extra space?
    • Twist: if directed:
      • First create lists of edges into the vertex
      • Reverse edges
    • Standard assumption:
      • Vertices are numbered 1…n
  3. Identify in O(n+m) all vertices in path from x-y
    • Make subgraph of biconnected components (biconnected component tree)
    • Account for case where starting point is articulation point
    • Also can’t DFS on the original graph without keeping track of whether it is leaving a biconnected component or not
  4. Single vertex has path to all other vertices in digraph
    • Break into strongly connected components
    • True if exactly 1 vertex has in degree 0 in the strongly connected component graph
    • Derived from harder problem:
      • Notion of connectivity (uni-connected)
        • Path of at least x-y or y-x

Union-Find