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
BFS expands in a clean wave: every cell at distance d is explored before any at d+1, so it fills a whole room in one sweep. It finds the fewest hops but ignores cost, so its path can cross expensive corridors.
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.