The Breadth First Search algorithm has been implemented using the queue data…

GATE · 2008 · CS

The Breadth First Search algorithm has been implemented using the queue data structure. One possible order of visiting the nodes of the following graph is

image.png

  1. A.

    MNOPQR

  2. B.

    NQMPOR

  3. C.

    QMNPRO

  4. D.

    QMNPOR

Attempted by 480 students.

Show answer

Correct answer: C

The worked solution is available to enrolled students.

Video solution available to enrolled students.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…