A Python project to visualize popular sorting algorithms using Matplotlib.
Sorting Algorithm Visualizer allows you to visualize the process of sorting an array using different sorting algorithms. This project uses Matplotlib to create dynamic bar charts that represent the elements being sorted.
The following sorting algorithms are currently supported:
- Bubble Sort
- Selection Sort
- Insertion Sort
- Merge Sort
- Quick Sort
To use Sorting Algorithm Visualizer, you'll need Python 3.6 or higher and Matplotlib. You can install Matplotlib using pip
:
pip install matplotlib
If you haven't already, clone the repository:
git clone https://github.com/your_username/sorting-algorithm-visualizer.git
cd sorting-algorithm-visualizer
To run Sorting Algorithm Visualizer, execute the main.py
file:
python main.py
You'll be prompted to choose a sorting algorithm from the list. Enter the number corresponding to the desired algorithm, and the visualizer will display the sorting process in real-time.
We welcome contributions to Sorting Algorithm Visualizer! If you'd like to contribute, you can:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Commit your changes and push to your fork.
- Create a pull request on the original repository.
This project is released under the MIT License.