Which graph traversal algorithm uses a queue?

17 views
  • Depth First Search
  • Breadth First Search (Correct Answer)
  • Dijkstra’s Algorithm
  • Prim’s Algorithm

Explanation

BFS uses a queue to explore nodes level by level. It ensures that nodes are visited in increasing order of distance from the source, making it suitable for shortest path in unweighted graphs.

Comments (0)

No comments yet. Be the first to comment!

Want to practice more?

Explore thousands of MCQs across every exam category on Exams Nepal.

Find More MCQs