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
A* adds a distance-to-exit guess to the cost so far, so cells and rooms that lead away from the exit rarely get explored. Dijkstra floods those anyway. Both find the cheapest path.
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.