Skip to content

jessica-nam/SortingAlgorithmVisualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

SortingAlgorithmVisualizer

Description

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.

Installation

  1. To use this program, first clone the repository --> https://github.com/jessica-nam/SortingAlgorithmVisualizer.git into any editor

  2. Make sure python is installed --> python --version If python is not installed --> https://www.python.org/

  3. Check for pip installation --> pip --version If pip is not installed --> python get-pip.py

  4. Install PyGame --> pip install pygame

Usage

Before sorting...

After sorting...

Credits

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages