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
Dijkstra expands by total cost, not hops. Turn on the cost map: it floods cheap rooms first and only pays for expensive corridors when it must. It spreads in every direction, including away from the exit.
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.