garimasingh128 / CP-DSA-Cpp-C

🕺 Give me data and I will structure it! 🔥
56 stars 100 forks source link

Add Kosaraju Double Pass Algorithm to find SCC #90

Closed chamow97 closed 3 years ago

chamow97 commented 3 years ago

Adding Kosaraju's Double pass algorithm to find Strongly Connected Components in a graph. This is a famous algorithm which will find SCC in O(V+E) by doing a brilliant trick of reversing the edges of a graph.