Skip to content

reshmaharidhas/Sorting-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting-Visualizer

A GUI sorting visualizer desktop application built using Tkinter.

Programming Language💻

  • Python 3

Tech Stack💻

  • Tkinter (GUI)
  • Pygame (audio)

Sorting Algorithms

The visualizer currently supports all these sorting algorithms,

  • Bubble sort
  • Insertion sort
  • Selection sort
  • Gnome sort
  • Shaker sort
  • Odd even sort
  • Dutch national flag algorithm (DNF sort)

Features ✨

  • Sorts list of random numbers by six sorting algorithms.
  • Visualizes the sorting processes using bar graphs.
  • Speed up or reduce animation speed to view the sorting process.
  • Generate new array of random number containing random numbers between custom minimum and custom maximum value anywhere between 10 to 600.
  • Shuffle the numbers, thereby shuffling the bars in visualizer.
  • Customize bar color in visualizer to any color.
  • Customize background color in visualizer to any color.
  • Calculates and displays the total seconds to complete every sorting process.
  • Sound to enhance the visualizer experience with its speed.

Algorithms demo:

Bubble sort

Bubble-Sort-1

Insertion sort

Insertion-Sort-1-002Speed

Selection sort

Selection-Sort-1-002Speed

Gnome sort

Gnome-Sort-1-002Speed

Shaker sort

Shaker-Sort-1-002Speed

Odd even sort

Odd-Even-Sort-1-002Speed

Screenshots

GUI shuffled_unsorted_bars Sorted bars sorted Customized bar and background color custom bar and background color unsorted

Development Tools💻

  • Pycharm
  • PyInstaller

License

MIT License