From charlesreid1

Revision as of 20:03, 11 June 2017 by Admin (talk | contribs)

Breadth-first search using queues

When doing BFS, use a queue.

Add the root node to the queue.

While the queue is not empty:

remove item from queue,

perform action on item,

add children to queue.


Flags