Which of the following best describes a strongly connected component in a directed graph?
Think about reachability in both directions between vertices.
A strongly connected component is a part of a directed graph where each vertex can be reached from any other vertex following the direction of edges.
Which statement about strongly connected components in a directed graph is true?
Consider how SCCs partition the graph's vertices.
Strongly connected components form a partition of the graph's vertices, so each vertex belongs to exactly one SCC.
Given a directed graph, Kosaraju's algorithm finds strongly connected components by performing two depth-first searches (DFS). What is the main purpose of the first DFS?
Think about how the order of processing vertices affects the second DFS.
The first DFS computes finishing times for vertices, which are used to order vertices in decreasing finishing time for the second DFS on the reversed graph.
What is the time complexity of Tarjan's algorithm for finding strongly connected components in a graph with V vertices and E edges?
Consider how many times each vertex and edge is processed.
Tarjan's algorithm runs in linear time relative to the number of vertices and edges, visiting each vertex and edge once.
Consider a directed graph where all edges are reversed. How do the strongly connected components of the reversed graph compare to those of the original graph?
Think about reachability in both directions and how reversing edges affects it.
Strong connectivity depends on mutual reachability. Reversing all edges preserves this property, so SCCs remain the same.