Skip to content

minh-le-q/Sorting-Algorithm-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Sorting-Algorithm-Visualizer

Visualize Bubble Sort, Insertion Sort, and Selection Sort using Pygame.

Support both asceding sorting and descending sorting.

How To Use

  1. Download and run sorting.py
  2. Using the keyboard to choose your prefered settings. Options include:
  • Space: start running the visualizer
  • R: reset the visualizer
  • A: set the visualizer to do ascending sort
  • D: set the visualizer to do descending sort
  • B: set the desired algorithm to Bubble Sort
  • I: set the desired algorithm to Insertion Sort
  • S: set the desired algorithm to Selection Sort

Demo

Visualize Bubble Sort in ascending order:

Figure 1: Before being sorted Figure 1: Before being sorted

Figure 2: During sorting Figure 2: During sorting

Figure 3: After being sorted Figure 3: After being sorted

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages