A* / Dijkstra / Floyd Simulator — step-by-step visualization
Grid size:
Obstacle density:
Animation delay (ms):
Generate random grid
Clear obstacles
Run A* (step-by-step)
Run Dijkstra
Run Floyd-Warshall
Compare counts
Controls:
Click cells to toggle obstacle. Shift+Click sets Start. Ctrl+Click sets Goal.
Start:
(0,0)
Goal:
(19,19)
Operation counts
A*:
-
Dijkstra:
-
Floyd:
-
Notes
Floyd-Warshall computes all-pairs shortest paths and is O(N³) where N = number of nodes (free cells). To avoid freezing, Floyd runs only when N ≤ 400.
A* open/explored
Dijkstra explored
DFS/Breadth (not used)
Start
Goal
Obstacle
Final path