Put the steps below in the order that reconstructs Kosaraju's algorithm for a graph .
Kosaraju's algorithm
The steps of Kosaraju's algorithm
Report a typo
Put the items in the correct order
Choose an unvisited node with the maximum output time and run DFS from this node for transposed .
Repeat two previous steps until the graph contains no unvisited nodes.
Transpose .
Run DFS for and save output time for each node.
When the current iteration of DFS is finished, save the nodes visited during the iteration as a strongly connected component.
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.