MicrolearnENPTES

Breadth-first search

Lesson 15 of 20 · Algo.Micro

Explore in rings around the start to find the shortest path in steps.

Each free cell is a node and each move to a neighbouring cell is an edge. Maps, social networks and web links are graphs too. Goal: from S to G in the fewest moves.

Check yourself

Which data structure drives BFS?

Do it in the browser: a real algorithms tool, a short mission and instant feedback. No install.

Start this lesson — free
← Walking a treeDepth-first search →

All lessons · Algo.Micro