Pathfinding Visualizer is an interactive web application designed to visually demonstrate various pathfinding and maze generation algorithms. Explore and understand how these algorithms work in real-time, making it perfect for students, developers, and enthusiasts who want to learn more about graph traversal and pathfinding techniques.
- A* (A-Star): Finds the shortest path using heuristics.
- Dijkstra's Algorithm: The classic shortest-path algorithm.
- Breadth-First Search (BFS): Explores nodes layer by layer.
- Depth-First Search (DFS): Explores as far as possible along each branch before backtracking.
- Binary Search: Generates a simple maze using binary space partitioning.
- Recursive Division: Creates complex mazes by recursively dividing the grid into sections.
- Interactive grid to set start and end points.
- Visual representation of algorithm execution.
- Option to adjust speed and grid size.
- Real-time updates with smooth animations.
To run the application locally:
-
Clone this repository:
git clone https://github.com/yourusername/pathfinding-visualizer.git
-
Navigate to the project directory:
cd pathfinding-visualizer
-
Install the dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and navigate to:
http://localhost:3000
- Select a pathfinding algorithm from the menu.
- (Optional) Generate a maze using one of the maze generation algorithms.
- Set your start and end points on the grid.
- Click "Visualize" to see the algorithm in action.
- Adjust speed and grid size to suit your preference.
Made with ❤️ by Artemis.