CS 312: Algorithm Analysis - PowerPoint PPT Presentation

1 / 7
About This Presentation
Title:

CS 312: Algorithm Analysis

Description:

during this depth-first search, process the vertices in decreasing order of ... i.e., don't worry about lexicographic order. 3 Questions. Is it correct? ... – PowerPoint PPT presentation

Number of Views:24
Avg rating:3.0/5.0
Slides: 8
Provided by: ericri4
Category:

less

Transcript and Presenter's Notes

Title: CS 312: Algorithm Analysis


1
CS 312 Algorithm Analysis
  • Lecture 15 Worked Example of Algorithm for
    Finding Strongly Connected Components

2
Announcements
  • HW 11 due now
  • Questions?
  • Project 2
  • Help session tomorrow (Tuesday 2/13)
  • Questions?
  • Career Fair events
  • see schedule!

3
Clarifications Finding SCCs
  • 1. Run depth-first search on GR
  • 2. Run the connected components algorithm on G
  • during this depth-first search, process the
    vertices in decreasing order of their post
    numbers from step 1
  • i.e., dont worry about lexicographic order

4
(No Transcript)
5
(No Transcript)
6
3 Questions
  • Is it correct?
  • Note how backward paths are found in step 1
  • Note how forward paths are found in step 2
  • How long does it take?
  • 2 DFS passes
  • O(V E) again!
  • Can we do better?

7
Next time
  • Shortest Paths
  • Breadth First Search
  • Dijkstras Algorithm
Write a Comment
User Comments (0)
About PowerShow.com