Breadth First Search

Breadth-First Search (BFS) systematically explores a graph or tree layer by layer. Starting from a root, it visits all immediate neighbors before moving to their neighbors, finding the shortest path in unweighted structures.

See also

Linked from: Depth First Search, Graph Traversal
0
9 views
1 week ago