Skip to content

Kevinliaoo/Sorting-Algorithms-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting algorithms visualizer

This program is a sorting algorithm visualizer that is able to run insertion sort and bubble sort.

img

Instalation

python -m venv venv 
venv\Scripts\activate.bat
pip install -r requirements.txt

Running

python path.py

Instructions

  • 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.



What I learned by doing this project:

  • Different types of sorting algorithms

  • Comparing time complexity of each of the algorithms

  • Designing a GUI using pygame

Author

Kevin Liao - @kevinliaoo

About

Sorting Algorithms Visualizer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages