Question

In a Breadth-First Search (BF

  • S algorithm for graph traversal, what is the primary role of a queue?
A To keep track of visited nodes
B To store the path from source to destination
C To manage nodes to be visited in a level-by-level order
D To prioritize nodes based on their value
E To reverse the order of node processing
Practice Next

Hey! Ask a query