Pathfinding Algorithm Visualizer

Explore the pathfinding algorithms using these functions!

Grid size

Algorithm Definition

DFS uses a stack data structure to traverse the grid. The starting node will the only node in the stack at the beginning. Peek the stack and check if it is the ending node, if not it will arbitrarily get the next unvisited neighbor node and push it to the stack. If all neighbors are already visited it will pop the current node in the stack to backtrack. Repeat operation until end node is found or stack is empty.

Algorithm Steps

This is where the information for every step of the algorithm is located.

Speed (ms)

Pathfinding Algorithm Visualizer by Kenneth Usares and Reanne Bernardo