Skip to content

Sorting Algorithm Visualizer ๐Ÿ“Š A Python-based GUI application to visualize sorting algorithms like Insertion Sort, Bubble Sort, and Selection Sort with real-time animations. Built using Tkinter, this project is perfect for learning and understanding how sorting works step-by-step! ๐Ÿš€

License

Notifications You must be signed in to change notification settings

vedbhau/sorting-algorithm-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“Š Sorting Algorithm Visualizer

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. ๐Ÿš€


โœจ Features

  • 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

๐Ÿ› ๏ธ Tech Stack

  • Python ๐Ÿ
  • Tkinter (for GUI development) ๐ŸŽจ
  • Random Module (to generate bar heights) ๐ŸŽฒ

๐ŸŽฎ How to Run the Project?

1๏ธโƒฃ Prerequisites

2๏ธโƒฃ Clone the Repository

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 Screenshot 2025-01-04 233507

๐Ÿ“„ License

This project is licensed under the MIT License. Feel free to use, modify, and distribute this project as you wish! ๐Ÿ“œ

๐Ÿ›ก๏ธ Acknowledgements

Inspired by various sorting algorithm visualizers online. Developed by Ved Malegaonkar. ๐ŸŒŸ

๐Ÿงฉ Future Enhancements

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. ๐Ÿ“š

Key Updates:

  • 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. ๐Ÿ˜Š

About

Sorting Algorithm Visualizer ๐Ÿ“Š A Python-based GUI application to visualize sorting algorithms like Insertion Sort, Bubble Sort, and Selection Sort with real-time animations. Built using Tkinter, this project is perfect for learning and understanding how sorting works step-by-step! ๐Ÿš€

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages