Shortest Path Finder is a minor project that helps find the optimal path from a source location to a destination using various algorithms such as A*, Breadth-First Search (BFS), Depth-First Search (DFS), and Dijkstra's algorithm.
- Source and Destination: Users can select a source and destination location on the grid.
- Algorithm Selection: Users can choose between A*, BFS, DFS, and Dijkstra's algorithm to find the shortest path.
- Visualization: The application visually demonstrates the pathfinding process on the grid.
- Path Information: Once the shortest path is found, the application displays the path length and the order of nodes visited.
- HTML
- CSS
- JavaScript
- React
To run the Shortest Path Finder locally, follow these steps:
- Clone the repository: git clone https://github.com/samridhi-sahu/shortest-path-finder.git
- Open the project directory: cd shortest-path-finder
- Install the dependencies: npm install
- Start the development server: npm start
Open your web browser and navigate to http://localhost:3000.
Select a source and destination location on the grid.
Choose an algorithm from the options available (A*, BFS, DFS, or Dijkstra's algorithm).
Click the "Find Path" button to visualize the shortest path-finding process.
Once the path is found, the application will display the path length and the order of nodes visited.