1.

The Data structure used in standard implementation of Breadth First Search is?(a) Stack(b) Queue(c) Linked List(d) TreeI have been asked this question during an internship interview.Query is from Breadth First Search in portion Graph Search of Data Structures & Algorithms II

Answer»

The correct answer is (b) QUEUE

The explanation is: The Breadth First Search explores every NODE once and PUT that node in queue and then it takes out NODES from the queue and explores it’s neighbors.



Discussion

No Comment Found

Related InterviewSolutions