×

Multiple-Choice Questions

How to find if two vertices A and B of a graph have a path in between them?

8. How to find if two vertices A and B of a graph have a path in between them?

  1. Using Breadth First Search, BFS
  2. Using Depth First Search, DFS
  3. Both of the above
  4. None of the above

Answer

The correct answer is: C) Both of the above

Explanation

Both BFS and DFS, we can find if two vertices A and B have a path in between them.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.