This project is a simple sorting algorithm visualizer. It generates a random list of values from 0 - 100 and sorts them using the bubble sort and insertion sort algorithm implemented in Python Upon running this code, a pygame window will pop up with a bar graph of the random values and options to choose which sorting algorithm to implement.
- My motivation for this project
- I built this visualizer to familarize myself with how sorting algorithms work and this program allows me to see the algorithm in action. I plan to expand on this project by implementing other algorithms such as heap sort, selection sort, etc.
-
To use this program, first clone the repository --> https://github.com/jessica-nam/SortingAlgorithmVisualizer.git into any editor
-
Make sure python is installed --> python --version If python is not installed --> https://www.python.org/
-
Check for pip installation --> pip --version If pip is not installed --> python get-pip.py
-
Install PyGame --> pip install pygame
I used this tutorial to learn PyGame basics https://www.youtube.com/watch?v=jO6qQDNa2UY
I used these videos as a refresher on sorting algorithms https://www.youtube.com/watch?v=YHm_4bVOe1s&list=PLj8W7XIvO93rJHSYzkk7CgfiLQRUEC2Sq&index=3 https://www.youtube.com/watch?v=Nkw6Jg_Gi4w&list=PLj8W7XIvO93rJHSYzkk7CgfiLQRUEC2Sq&index=1