GATE CS 2017, set 2 · Question 15 · Algorithms · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer
The Breadth First Search (BFS) algorithm has been implemented using the queue data structure. Which one of the following is a possible order of visiting the nodes in the graph below?

- (A) MNOPQR
- (B) NQMPOR
- (C) QMNROP
- (D) POQNMR
Answer
Answer (D)
Answer from the official GATE CS 2017 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes