Jump to content

Kosaraju's algorithm

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 222.133.28.131 (talk) at 00:38, 2 November 2015 (Complexity). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In computer science, Kosaraju's algorithm (also known as the Kosaraju–Sharir algorithm) is a linear time algorithm to find the strongly connected components of a directed graph. Aho, Hopcroft and Ullman credit it to an unpublished paper from 1978 by S. Rao Kosaraju. The same algorithm was independently discovered by Micha Sharir and published by him in 1981. It makes use of the fact that the transpose graph (the same graph with the direction of every edge reversed) has exactly the same strongly connected components as the original graph.

References