Question: Design an algorithm to test semi-connectivity of a directed graph in O(|E|) time. Note that you can assume functions are given to conduct topological sort
Design an algorithm to test semi-connectivity of a directed graph in O(|E|) time. Note that you can assume functions are given to conduct topological sort and to de-compose a graph into SCCs (Kosarajus algorithm).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
