This React application demonstrates the visualization of Dijkstra's algorithm on a grid. The algorithm finds the shortest path from a start node to a finish node, considering walls as obstacles.
To run the project locally, follow these steps:
-
Clone the Repository:
git clone https://github.com/your-username/dijkstra-visualization.git cd dijkstra-visualization
-
Install Dependencies:
npm install
-
Run the Application:
npm install npm start
The application should open in your default web browser at http://localhost:3000.
![Screenshot 2023-12-15 at 11 08 36 PM](https://private-user-images.githubusercontent.com/50766043/290964575-37bc0b0b-b4ea-41ad-9c2f-79d03b51ff80.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMDA1MzgsIm5iZiI6MTczOTEwMDIzOCwicGF0aCI6Ii81MDc2NjA0My8yOTA5NjQ1NzUtMzdiYzBiMGItYjRlYS00MWFkLTljMmYtNzlkMDNiNTFmZjgwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDExMjM1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA4MjEwOWY1MzBhYjdhY2IzZDliYmRhZDU0MDA3ZjY2OWQ2ZjVkMTk5OGIwOTMwZDNiNjdhMjE5MmMyYWU5ZGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.iqBY7qICaA90yiAqgyJsDCZSFSj3gdStxYkw-ID1MSg)
![Screenshot 2023-12-15 at 11 08 44 PM](https://private-user-images.githubusercontent.com/50766043/290964579-f2122fe0-a4d7-4023-a72b-cee10f936bac.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMDA1MzgsIm5iZiI6MTczOTEwMDIzOCwicGF0aCI6Ii81MDc2NjA0My8yOTA5NjQ1NzktZjIxMjJmZTAtYTRkNy00MDIzLWE3MmItY2VlMTBmOTM2YmFjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDExMjM1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ0ZTg5YmRkMWE0ZjAxNDY5OGZhNDMxOTljOGYyZGU1ZTY1ZTZiMjI0ODRhYWRhNmY5MWI1OTYxNGNiZjkzZWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.vFYkfzMmohM3mO4WJR6rkXxhknrC04B6KeaiAWXuDLA)
![Screenshot 2023-12-15 at 11 08 48 PM](https://private-user-images.githubusercontent.com/50766043/290964582-63d2ff7b-14f9-4f99-ac53-c2932e362235.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMDA1MzgsIm5iZiI6MTczOTEwMDIzOCwicGF0aCI6Ii81MDc2NjA0My8yOTA5NjQ1ODItNjNkMmZmN2ItMTRmOS00Zjk5LWFjNTMtYzI5MzJlMzYyMjM1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDExMjM1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUwM2VmMWZlNDdlNWNlMmY5ZTdkMWIzZmQxM2ZlYzJkOTRiOTBlMjQ0OGMyNDIxMTY3MmIxOTEzMGQ2NDVhYTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.kiyj8KZDiMOkmhB9u5nKGgKGCLqdVAElbHMPtmQyNvQ)
- Click the "Visualize Dijkstra" button to see the algorithm in action.
- Observe the visualization of the algorithm's progress on the grid.
- The shortest path from the start node to the finish node will be marked in blue.
- src/components/Grid.js: Contains the main grid component.
- src/components/Node.js: Represents a single node in the grid.
- styled-components: Styling using the styled-components library.
- React
- styled-components
This project is licensed under the GPL-3.0 license - see the LICENSE file for details.
Mohammed M. Salha