← AI-aktiviteter Svenska

Search algorithms in a maze

Build your own maze and watch how BFS, DFS, Greedy best-first and A* find their way to the goal.

Algorithm selection

Search algorithms in a maze

Explore how an AI agent can navigate through a maze. See how four classic search algorithms work step by step.

01
Choose a maze – load a ready-made one, or turn on edit mode and build your own.
02
Choose an algorithm and search – BFS, DFS, Greedy best-first or A*, then press Start search.
03
Compare – run the same maze with different algorithms. Which finds the shortest path, and which explores the fewest cells?
Choose an algorithm to start a search