Algorithm Visualizations

Algorithm Visualizations

Explore algorithm visualizations code snippets and tutorials

Algorithm Visualizations

Iterative deepening DFS: Examples & Code

Iterative deepening DFS: Search from node 0 to the highest numbered node. Ignore weights; revisit a node if a shallower path is discovered. Explore a worked…

Algorithm Visualizations

Depth-limited DFS: Examples & Code

Depth-limited DFS: Search from node 0 to the highest numbered node. Ignore weights; revisit a node if a shallower path is discovered. Explore a worked…

Algorithm Visualizations

Greedy best-first grid search: Examples & Code

Greedy best-first grid search: Find a path from top-left to bottom-right using four-direction moves. Greedy uses only Manhattan distance and does not…

Algorithm Visualizations

A* grid pathfinding: Examples & Code

A* grid pathfinding: Find a path from top-left to bottom-right using four-direction moves. A* uses distance + admissible Manhattan heuristic and finds a…

Algorithm Visualizations

Hamiltonian cycle backtracking: Examples & Code

Hamiltonian cycle backtracking: Search directed paths visiting every vertex exactly once and returning to the start. Weights are ignored; at most seven…