Consequence the strongly connected components can be

This preview shows page 18 - 28 out of 28 pages.

than the highest post number in C’. § Consequence : The strongly connected components can be linearized by arranging them in decreasing order of their post numbers.
Image of page 18

Subscribe to view the full document.

Step 1 § Reverse the graph to produce GR § Necessary to do the reversal explicitly? § Run depth-first search on GR
Image of page 19
Problem 3.4 (ii)
Image of page 20

Subscribe to view the full document.

Problem 3.4 (ii)
Image of page 21
Problem 3.4 (ii)
Image of page 22

Subscribe to view the full document.

Step 2 § How do we continue once a vertex belonging to the sink component has been discovered? § Recall: The strongly connected components can be linearized by arranging them in decreasing order of their post numbers. § Run DFS on G, keeping track of connected components Process the vertices beginning and breaking
Image of page 23
Image of page 24

Subscribe to view the full document.

Image of page 25
Image of page 26

Subscribe to view the full document.

3 Questions § Is it correct? § Relies on the correctness of the properties we identified earlier § How long does it take? § 2 DFS passes § O(||V|| + ||E||) – again! § Can we do better?
Image of page 27
Assignment § Write your reviews! § HW #11: § Practice using the SCC-finding algorithm § Due Wednesday § Read 4.1-4.5 § Shortest Paths § Breadth First Search § Dijkstra’s Algorithm
Image of page 28
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