×

Multiple-Choice Questions

Which of the following data structures is used for depth first traversal of a graph?

5. Which of the following data structures is used for depth first traversal of a graph?

  1. Stack
  2. Graph
  3. Queue
  4. Tree

Answer

The correct answer is: A) Stack

Explanation

For breadth first traversal of a graph, queue is used whereas for depth first traversal of a graph, stack is used.

Comments and Discussions!

Load comments ↻






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