Algorithms and Data Structures · Senior · Question 34 of 75

What does Tarjan's or Kosaraju's algorithm compute?

Explanation

A strongly connected component is a group where every vertex reaches every other. Both algorithms run in O(V + E) with DFS. Collapsing SCCs turns any directed graph into a DAG, useful for dependency analysis.

Further reading

Problem with a question

Algorithms and Data Structures · Senior · question 34

Test yourself

Take the Algorithms and Data Structures · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz