Skip to content

ItsDrike/QuickSort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

QuickSort

This uses pygame to visualize Bubble Sort algorithm.
I decided to use line length as distinctive feature which will get sorted for best list/array visualization.

NOTE: This is a re-upload of a project I made several years ago.

Final result

Example list: [12, 58, 21, 13, 18, 42, 35, 49, 10, 3, 50, 28, 55, 1, 8, 3, 24, 49]

Result:

QuickSort

Colors

  • Green: Pivot value to compare against
  • Yellow: Current element being compared
  • Red: Moving pivot index, establishing where next pivot should be
  • Orange: Current element is also the moving pivot index
  • Blue: All values being partitioned
  • White: Currently ignored values

About

Quick Sort algorithm visualization using pygame

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages