VISUALGO//MAZE
multi-exit maze · pathfinding trace console · O(V + E)
● ORIGIN   ◆ EXIT   ◆ REACHED
EXITS
COST MAP
READOUT
cells explored1 / 400
frontier size0
statusIDLE
path length—
path cost—
shortest hops—
WHAT TO NOTICE

DFS commits to one branch and follows it as deep as it can, trying north, east, south, then west. The loops in this maze give it extra routes, and the first route it finds is usually long and winding.

WEIGHTS

Edge Weights

Corridors have different traversal costs. Dijkstra and A* find the cheapest path considering weights. BFS and DFS ignore weights and treat all edges equally.

●Normal (cost 1)
●Medium (cost 2)
●Heavy (cost 3)

Turn on COST MAP to tint each cell from teal (cheap) to rose (costly) by the average cost of its openings.