Sail E0 Webinar
Question
The Data structure used in standard implementation of Breadth First Search is?
Options:
A .  Stack
B .  Queue
C .  Linked List
D .  None of the mentioned
Answer: Option B


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.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers