Breadth-first search
Meaning in software engineering, with examples
In software engineering, breadth-first search means: A graph or tree traversal method that visits all nearby nodes first, moving level by level before going deeper.
In Turkish: genişlik öncelikli arama
How it is used
Common in algorithm classes, interview questions, and pathfinding discussions. Often used for shortest paths in unweighted graphs and level-order traversal.
Example sentences
To find the minimum number of transfers between stations, the engineer used breadth-first search on the transit network graph.
Here the term is used because this traversal reaches nodes in increasing distance, which helps count the fewest edges to a target.
Our parser visualizer runs breadth-first search to print each tree level on a separate line for easier debugging.
In this example, it highlights level-by-level traversal, which naturally matches printing nodes grouped by depth in the tree.
Common collocations
- breadth-first search traversal
- breadth-first search queue
- run breadth-first search
Related terms
More terms: Data Structures and Algorithms
Practise with graded reading
Reading at the right level is the fastest way to make new words stick. Pick free English books by level:
