mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2025-04-06 22:31:08 +08:00
* update-readme * deploy * deploy Co-authored-by: name <your mail> Co-authored-by: Oleksii Trekhleb <trehleb@gmail.com>
Breadth-First Search (BFS)
Breadth-first search (BFS) is an algorithm for traversing, searching tree, or graph data structures. It starts at the tree root (or some arbitrary node of a graph, sometimes referred to as a 'search key') and explores the neighbor nodes first, before moving to the next level neighbors.