Sccs you need to understand the following pre and

This preview shows page 15 - 19 out of 28 pages.

SCCs, you need to understand the following: § Pre and post numbering in DFS § Meta-graph created by representing each SCC with a single meta-node. § The meta-graph is a DAG and could therefore be linearized using DFS.
Image of page 15

Subscribe to view the full document.

Finding SCCs § Goal: Given a directed graph, find all of the SCCs § Big Idea: § A: Find a (vertex in a) sink SCC § B: Work back to find the other SCCs § How do you find a sink SCC? § Finding a sink (node) in a DAG is easy § But what about when there are cycles? § Problem A seems hard, so solve problem A’ first: § Finding a node in a source SCC of a directed graph could be easier. § A’: find a source SCC on the “reverse graph”
Image of page 16
Reverse Graph G To find a sink, identify a source SCC of the reverse graph GR! GR Metagraph of GR
Image of page 17

Subscribe to view the full document.

Insights § Property : The node that receives the highest post number in a depth-first search must lie in a source strongly connected component. § Property : If C and C’ are strongly connected components, and there is an edge from a node in C to a node in C’, then the highest post number in C is bigger than the highest post number in C’.
Image of page 18
Image of page 19
You've reached the end of this preview.
  • Spring '08
  • Jones,M
  • Graph Theory, Depth-first search, Directed acyclic graph, connected component, Strongly connected component

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern