Nepedia
Back to Discover
Early Reader
🔢

Breadth-first search

math Maturity 11-13 Next article →

Imagine you are in a maze.

BFS-Algorithm Search Way
BFS-Algorithm Search Way

You want to find the end. You look at every path near you first. Then you look at the next paths. This helps you find the best way out. It is a smart way to search. Can you find your way through a maze?

50 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (5)
File:Animated BFS.gif
Animated BFS.gif
File:BFS-Algorithm Search Way.gif
BFS-Algorithm Search Way.gif
File:Tic-tac-toe-game-tree.svg
Tic-tac-toe-game-tree.svg
File:MapGermanyGraph.svg
MapGermanyGraph.svg
File:GermanyBFS.svg
GermanyBFS.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.