Question
In a Breadth-First Search (BFS) algorithm for graph
traversal, what is the primary role of a queue?Solution
BFS uses a queue to explore nodes level by level. Nodes are enqueued when discovered and dequeued to visit their neighbors, ensuring that all nodes at the current depth are visited before moving to the next depth.
The Reserve Bank ofIndia (RBI) has introduced the SORRas a new benchmark for overnight rupee transactions, aiming to improve transparency and better ref...
Cabinet has approved the continuation of PM SVANidhi beyond March 2022 till December 2024, what was the budget allocated for this scheme?
What medical device is used to measure blood pressure?Â
Which of the following organisms is commonly known as blue-green algae?
On 8th April 1929, who among the following two revolutionists threw a bomb in the Central Legislative Assembly?
Who among the following is one of the winners of the 2019 United Nations Military Gender Advocate Award?
Which is the official language for Android development?
Where in India the Nehru Memorial Museum and Library?
Which non-metal among the following is poly-atomic?
Who was the first deputy governor of Jammu and Kashmir?