Welcome to the Search Algorithm Visualizer, a React Vite app designed to help you visualize and understand two popular search algorithms: Breadth-First Search (BFS) and Depth-First Search (DFS). The user interface is built using ShadeCN for styling and Tailwind CSS for utility-first styling. The project directory is organized with a 'src' folder containing 'components' and 'hooks' as subfolders.
- Visualize Breadth-First Search (BFS) and Depth-First Search (DFS) algorithms.
- Understand algorithmic concepts through interactive visualization.
- Responsive and stylish UI powered by ShadeCN and Tailwind CSS.
Make sure you have Node.js and npm installed. Then, follow these steps to set up the project:
-
Clone the repository:
git clone https://github.com/leulabay1/search-algorithms-visualizer.git
-
Navigate to the project directory:
cd search-algorithm-visualizer -
Install dependencies:
npm install
To start the development server and run the app locally, use the following command:
npm run devVisit http://localhost:3000 in your browser to see the app in action.
search-algorithm-visualizer/
|-- src/
| |-- components/ # React components
| | |-- AlgorithmVisualizer.jsx # Main visualization component
| | |-- ... # Other components
| |-- hooks/ # Custom React hooks
| | |-- useBFS.js # Hook for Breadth-First Search
| | |-- useDFS.js # Hook for Depth-First Search
| |-- App.jsx # Main application component
| |-- index.jsx # Entry point
|-- public/
|-- node_modules/
|-- .gitignore
|-- package.json
|-- README.md
|-- ... # Other configuration files
Contributions are welcome! If you'd like to contribute to the project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your fork.
- Submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Special thanks to the developers of React, Vite, ShadeCN, and Tailwind CSS.
- Inspired by the desire to make algorithms more accessible and understandable through visualization.
Happy coding! 🚀