A dynamic, interactive web application that visualizes various sorting algorithms in real-time. Built with Next.js, TypeScript, and Tailwind CSS, this project helps users understand how different sorting algorithms work through animated visualizations.
- Real-time visualization of sorting algorithms
- Multiple sorting algorithms supported
- Bubble Sort
- Other algorithms (list your implemented algorithms)
- Adjustable visualization speed
- Customizable array size
- Responsive design
- Algorithm complexity information
- Interactive controls (play/pause/reset)
Check out the live demo: Visual Sort
- Next.js 13+
- TypeScript
- Tailwind CSS
- React Context API
- React Icons
- Clone the repository:
git clone https://github.com/Bipin-Kalakheti/visualsort.git
- Navigate to the project directory:
cd visualsort
- Install dependencies:
npm install
- Run the development server:
npm run dev
- Open http://localhost:3000 with your browser to see the result.
- Select a sorting algorithm from the dropdown menu
- Adjust the array size using the size slider
- Modify the animation speed using the speed slider
- Click the play button to start the visualization
- Use the reset button to generate a new random array
Each algorithm includes:
- Time complexity information
- Brief description
- Visual representation of the sorting process
- Bubble Sort
- Worst Case: O(n²)
- Average Case: O(n²)
- Best Case: O(n)
(Add other implemented algorithms with their complexities)
src/
├── components/
│ ├── Input/
│ │ ├── Select.tsx
│ │ └── Slider.tsx
│ └── ...
├── context/
│ └── Visualizer.tsx
├── lib/
│ ├── types.ts
│ └── utils.ts
└── ...
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
- Next.js - React framework
- TypeScript - JavaScript with syntax for types
- Tailwind CSS - CSS framework
- React Icons - Icon library
- GeeksforGeeks - For sorting algorithm references
- Visualgo - For visualization inspiration
- The open-source community for continuous support and inspiration
- Bipin Kalakheti - Project Creator
Project Link: https://github.com/Bipin-Kalakheti/visualsort
Made with ❤️ by Bipin Kalakheti