PPolySim OS
For Students · Maze Generator

Maze Generator for a gradient descent

Built for students learning it for a class or exam. See the concept move instead of memorizing formulas — and check your homework intuition. Simulate a gradient descent live below — adjust the inputs and watch it respond, right in your browser.

Maze Generator & SolverLive

Controls

Presets

A perfect maze (exactly one path between any two cells) carved by depth-first backtracking, then solved top-left to bottom-right with breadth-first search.

▶ Run in Python

Data Inspector

Cells25²
AlgorithmDFS carve
SolverBFS shortest

Governing equation

Reading this result: A perfect maze has exactly one path between any two cells, so BFS from corner to corner always finds it — here across 625 cells.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →

More with Maze Generator

Frequently asked questions

Is this good for students?
Yes — this version of "Maze Generator for a gradient descent" is framed for students learning it for a class or exam. See the concept move instead of memorizing formulas — and check your homework intuition.
Do I need to install anything?
No. It runs in any modern browser, free, with no account required.