This is a Sorting Visualizer program that displays a graphical representation of various sorting algorithms. It was implemented using Python's tkinter
library for the GUI and allows the user to visualize:
- Bubble sort
- Selection sort
- Insertion sort
- Python 3.6 or later
- Tkinter library
Clone this repository:
git clone https://github.com/uppercasee/sorting-visualizer.git
- Open the terminal and navigate to the directory where the program is saved.
- Run the program by typing:
python main.py
- A window will pop up displaying the program's user interface.
- Use the slider to choose the number of elements you want to sort.
- Use the delay slider to adjust the delay between each comparison.
- Select a sorting algorithm from the dropdown menu.
- Click on the "Sort" button to visualize the sorting algorithm.
- Merge Sort
- Heap Sort
- Quick Sort
- and others (maybe)
This program was heavily inspired by 15 Sorting Algorithms in 6 Minutes - Timo Bingmann