Skip to content

ackenney/algorithm-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithm Visualizer

This project is an algorithm visualizer application made with Python and Pygame that shows the sorting processes for the bubble sort, selection sort, shell sort, and insertion sort algorithms

Implemented Algorithms

  • Bubble sort
  • Insertion sort
  • Selection sort
  • Shell sort

Demos

Time Complexity

Sorting Algorithm Average Time Complexity Worst Case Time Complexity
Bubble Sort O(N^2) O(N^2)
Insertion Sort O(N^2) O(N^2)
Selection Sort O(N^2) O(n^2)
Shell Sort O(N^5/4) O(N^2)

Installation/Quick Start

  • Clone GitHub repository: git clone https://github.com/ackenney/algorithm-visualizer.git
  • Install requirements: pip install -r requirements.txt
  • Run: python main.py

Using the application

  • Press the R key to create a new random array to test
  • Press the spacebar key to start the sorting with the currently selected algorithm
  • Press 1 to select the insertion sort algorithm
  • Press 2 to select the bubble sort algorithm
  • Press 3 to select the selection sort algorithm
  • Press 4 to select the shell sort algorithm

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages