In this exercise we will develop an algorithm to find the strong components of a directed graph
Question:
a) Explain how to use breadth-first search in the directed graph G to find all the vertices reachable from a vertex v ∈ G.
b) Explain how to use breadth-first search in Gconv to find all the vertices from which a vertex v ∈ G is reachable. (Recall that Gconv is the directed graph obtained from G by reversing the direction of all its edges.)
c) Explain how to use parts (a) and (b) to construct an algorithm that finds the strong components of a directed graph G, and explain why your algorithm is correct.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Discrete Mathematics and Its Applications
ISBN: 978-0073383095
7th edition
Authors: Kenneth H. Rosen
Question Posted: