<<Up     Contents

Breadth-first search

Breadth First Search (BFS) is a way of traversing or searching a Tree (graph theory) or Tree structure. Intuitively, you start at the root and explore all the neighboring nodes (only!) first. Then for each of those nearest nodes, explore their unexplored neighbor nodes, and so on.

Formally, BFS is an uninformed search method that aims to expand and examine all nodes of a tree systematically in search of a solution.

From the stand-point of the algorithm, all nodes obtained by expanding any node are placed at the end of the search Queue.


See also:

wikipedia.org dumped 2003-03-17 with terodump