1.

The Data structure used in standard implementation of Breadth First Search is?(a) Stack(b) Queue(c) Linked List(d) TreeThe question was posed to me in semester exam.Question is from Depth First Search topic in chapter Graph Search of Data Structures & Algorithms II

Answer»

The correct option is (a) Stack

The explanation is: The Depth FIRST SEARCH is implemented using recursion. So, stack can be used as DATA STRUCTURE to implement depth first search.



Discussion

No Comment Found

Related InterviewSolutions