Codele / Algorithms

Breadth-first search

Drop a stone in a pond and ripples spread in rings. Breadth-first search explores a map the same way: every town one step away, then every town two steps away, and so on.

Loading the playable lesson…