Sorting Visualizer

As the Name suggests, this Project visualizes various types of Swap-Based Sorting Algorithms and gives you an understanding of how does sorting actually performed.

It is not important that you received a sorted array/list but the mechanism that generates you the sorted array.

This project visualizes following sorting algorithms:

  • Bubble Sort
  • Insertion Sort
  • Selection Sort
  • Quick Sort
  • Heap Sort
  • Cocktail Sort
  • Gnome Sort

To run this Project please follow these steps

  1. Open command prompt or powershell window.
  2. Type this command
    git clone https://github.com/YashasviBhatt/Sorting_Visualizer
    and press enter.
  3. Go inside the Cloned Repository folder and open command-prompt or powershell window.
  4. Please install TKinter using
    pip install tkinter
    and press enter in either command_prompt or powershell window as administrator.
  5. After Installing TKinter execute the program
    python sorting_visualizer.py.

As mentioned, The project only visualizes Swap-Based Sorting Algorithms but ideas are accepted on how to visualize Non-Swap-Based Sorting Algorithms using same approach, make a pull request if you want to add your ideas/contribution and maintainers will look after it :blush:.

Here is a small Demo


Sorting_Visualizer

Built With

Share this project:

Updates