Question: You are given a directed graph G=(V, E) and a subset of vertices V1 CV. Design an algorithm to decide if for every vertex v

You are given a directed graph G=(V, E) and a subset of vertices V1 CV. Design an algorithm to decide if for every vertex v EV\Vi there exists a vertex u V such that u can reach v in G and v can reach u in G. Your algorithm should run in O(VI+ |E|) time. Show the correctness and running time of your algorithm
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
