Question: STRONGLY - CONNECTED - COMPONENTS ( G ) 1 . Call DFS ( G ) to compute finishing times f ( u ) for each

STRONGLY-CONNECTED-COMPONENTS (G)
1. Call DFS (G) to compute finishing times f(u) for each vertex u
2. Compute GT
3. Call DFS (GT
), but in the main loop of DFS, consider the vertices in order of decreasing f(u)
4. Output the vertices of each tree in the depth-first forest formed in line 3 as a separate strongly
connected component
A B
D E
G H F
C

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!