1.

Which data structure conveniently used to implement BFS?(a) Stacks(b) Queues(c) Priority Queues(d) All of the mentionedThis question was posed to me in unit test.Question is taken from Uninformed Search and Exploration topic in chapter Problem Solving of Artificial Intelligence

Answer»

Right answer is (b) Queues

Easy explanation: Queue is the most convenient data STRUCTURE, but memory USED to store nodes can be REDUCED by using CIRCULAR queues.



Discussion

No Comment Found

Related InterviewSolutions