Welcome to the Sorting Algorithms Visualization project! This project uses Pygame to visualize various sorting algorithms, making it easier to understand how they work.
- Visual representation of sorting algorithms:
- Bubble Sort
- Selection Sort
- Insertion Sort
- Merge Sort
- Quick Sort
- Heap Sort
- Interactive controls for selecting the sorting algorithm
- Input field to define the number of data elements to sort
- Reset functionality to generate a new random array
- Python 3.x
- Pygame library
-
Clone the repository:
git clone https://github.com/yourusername/sorting-visualization.git cd sorting-visualization
-
Install the required packages:
pip install pygame
-
Run the program:
python visualizer.py
-
Use the buttons to select the sorting algorithm you want to visualize.
-
Adjust the number of data elements using the input field and click "Reset Array" to generate a new set of data.
-
Watch the sorting algorithm in action!
Contributions are welcome! If you have suggestions for improvements or additional features, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Inspired by the desire to visualize sorting algorithms for better understanding and learning.