ā” Build the skills to land top-paying quant jobs. Offer ends in 17d 22h 19m 31s17 days 22 hours 19 minutes 31 seconds.
ā” Build the skills to land top-paying quant jobs. Offer ends in 17d 22h 19m 31s17 days 22 hours 19 minutes 31 seconds.

Sign in to watch this lesson
Advanced - Graphs Ā· 4:34
A strongly connected component is a maximal set of vertices that all reach each other; the components partition the graph, and shrinking each to a point gives the condensation, which is always a DAG. Kosaraju's algorithm finds them with two depth-first searches: record finishing order, then search the reversed graph in decreasing finishing order, getting the components in topological order. Tarjan's one-pass algorithm uses low values and a stack and closes them in reverse order.