This program is a sorting algorithm visualizer that is able to run insertion sort and bubble sort.
python -m venv venv
venv\Scripts\activate.bat
pip install -r requirements.txt
python path.py
- You can select the sorting algorithm by clicking the top left button, you can wether run insertion sort or bubble sort.
- To change the size of the set of bars to be sorted, slide through the slidebar.
- Click Regenerate button if you are not satisfied with the set of bars that was generated to randomly generate a new set of bars.
- Finally, click Start button to start running and visualize the sorting algorithm.
-
Different types of sorting algorithms
-
Comparing time complexity of each of the algorithms
-
Designing a GUI using pygame
Kevin Liao - @kevinliaoo