Question: STRONGLY - CONNECTED - COMPONENTS ( G ) 1 . Call DFS ( G ) to compute finishing times f ( u ) for each
STRONGLYCONNECTEDCOMPONENTS G
Call DFS G to compute finishing times fu for each vertex u
Compute GT
Call DFS GT
but in the main loop of DFS consider the vertices in order of decreasing fu
Output the vertices of each tree in the depthfirst forest formed in line 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
