Welcome to the Sorting Algorithm Visualizer! ๐
This Python-based GUI application demonstrates sorting algorithms with stunning animations. Designed for beginners and enthusiasts alike, this tool helps visualize how sorting works step-by-step. ๐
- Visualize Insertion Sort, Bubble Sort, and Selection Sort in action! ๐ช
- Customize the number of bars to sort.
- Dynamic animations for swapping bars.
- Easy-to-use graphical interface powered by Tkinter. ๐จ
- See the smallest and largest bars highlighted in real-time:
- ๐ด Smallest bar
- โซ๏ธ Largest bar
- Python ๐
- Tkinter (for GUI development) ๐จ
- Random Module (to generate bar heights) ๐ฒ
- Ensure Python is installed on your system. If not, download Python.
Run the following commands in your terminal:
git clone https://github.com/vedbhau/sorting-algorithm-visualizer.git
cd sorting-algorithm-visualizer
3๏ธโฃ Install Required Modules
This project uses only built-in Python libraries, so no additional installations are required! โ
4๏ธโฃ Run the Application
Run the Python script to start the visualizer:
bash
bash
Copy code
python sorting_visualizer.py
5๏ธโฃ Interact with the App
Enter the number of bars you want to sort (e.g., 50).
Click on a sorting algorithm button (Insertion Sort, Bubble Sort, or Selection Sort) to see the sorting process in action.
Shuffle the bars anytime with the Shuffle button! ๐ฒ
๐ How It Works Generate Bars: Randomly sized bars are displayed on the canvas. Choose Algorithm: Select a sorting algorithm to see it animate in real-time. Highlight Key Elements: ๐ด Smallest bar โซ๏ธ Largest bar Animation: Bars swap positions as the sorting algorithm processes the data.
๐ธ Screenshots
Sorting in Action
This project is licensed under the MIT License. Feel free to use, modify, and distribute this project as you wish! ๐
Inspired by various sorting algorithm visualizers online. Developed by Ved Malegaonkar. ๐
Add more sorting algorithms like Merge Sort, Quick Sort, and Heap Sort. ๐ข Include a pause and resume feature for animations. โธ๏ธโฏ๏ธ Add a step-by-step explanation for each sorting algorithm. ๐
- The bash block for commands stops after the "Run the Application" step.
- Plain text (
plaintext
) is used for the steps under Point 5 so they render correctly in GitHub without being part of the code block.
This format ensures clarity and proper syntax rendering in your GitHub README. ๐