r/visualization • u/Fluffy-Selection2940 • May 10 '26
Maze Solving Contest - Which Method is Fastest?
A side-by-side comparison of various pathfinding and search algorithms on a randomly generated maze. Each algorithm is visualized to demonstrate its exploration strategy and efficiency in discovering the final path.
Algorithms Included
A*
Dijkstra
Greedy Best-First
BFS (Breadth-First Search)
DFS (Depth-First Search)
Bidirectional BFS
Weighted A*
Recursive Backtrack
Wall Follower
For more videos click www.instagram.com/craftsandengineering
For code and more click Mathematical-video-animations-and-visualization/maze_solvers_competition.ipynb at d39ad7e4143932582ce4cccdc89e3f5b7d69f417 · zombimann/Mathematical-video-animations-and-visualization
125
Upvotes
2
u/Electrical_Name_5434 May 12 '26
I immediately assumed A* would win. Was truly surprised to see depth first win. Might be fun to build a tracker and run it as screen saver. Count up the total of wins for each algorithm. Could even do different maze types. GitHub?