← AI-aktiviteter Svenska

Search algorithms in a maze

Choose a ready-made maze or build your own, and watch how BFS, DFS, Greedy best-first and A* find their way to the goal.

Algorithm selection

Example mazes

Search algorithms in a maze

Four classic search algorithms work through the same maze. Follow how they spread out, square by square.

1
Choose a maze. Click one of the five examples, or build your own in edit mode.
2
Choose an algorithm. The options are BFS, DFS, Greedy best-first and A*.
3
Compare. Note how long a path each algorithm finds and how many cells it has to examine.
Choose an algorithm to start a search