Home▸Algorithms & AI▸Maze Generation Algorithms: Spanning Trees, Dead Ends and Solution Length

Maze Generation Algorithms: Spanning Trees, Dead Ends and Solution Length

Watch six maze algorithms carve a spanning tree of the grid: recursive backtracker, Prim, Kruskal, Wilson, Aldous-Broder and binary tree. Choose the size, seed and how many dead ends to open into loops, then compare dead-end fraction, corridor lengths and the shortest solution. A Blender-built hedge maze with a runner, with numerical checks (Kirchhoff tree counts, chi-square uniformity, the 0.2945 leaf limit) built in.

Algorithms & AI3DEasy60 FPS📱 Mobile-adapted🟠 Blender⇄ 2D version
Maze Generation Algorithms: Spanning Trees, Dead Ends and Solution Length ↗ Open standalone

Watch six maze algorithms carve a spanning tree of the grid: recursive backtracker, Prim, Kruskal, Wilson, Aldous-Broder and binary tree. Choose the size, seed and how many dead ends to open into loops, then compare dead-end fraction, corridor lengths and the shortest solution. A Blender-built hedge maze with a runner, with numerical checks (Kirchhoff tree counts, chi-square uniformity, the 0.2945 leaf limit) built in.

⚙ Under the hood

Watch six maze algorithms carve a spanning tree of the grid: recursive backtracker, Prim, Kruskal, Wilson, Aldous-Broder and binary tree. Choose the size, seed and how many dead ends to open into loops, then compare dead-end fraction, corridor lengths and the shortest solution. A Blender-built hedge maze with a runner, with numerical checks (Kirchhoff tree counts, chi-square uniformity, the 0.2945 leaf limit) built in.

maze generatorrecursive backtrackingprimMaze GenerationSpanning TreeWilson AlgorithmGraph TheoryRecursive BacktrackerDead Ends

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)