From charlesreid1

Revision as of 20:02, 11 June 2017 by Admin (talk | contribs) (Created page with "==Breadth-first search - 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 i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Breadth-first search - 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.