Skip to content

Visualization of how sorting algorithms work. Displaying Data vs Index graph for real-time sorting in GIF.

License

Notifications You must be signed in to change notification settings

jayanta-banik/Visualization-of-Sorting-Algorithms

Repository files navigation

Visualization-of-Sorting-Algorithms

Visualization of how sorting algorithms work. Displaying Data vs Index graph for real-time sorting in GIF.

consider a dataset that is linearly taken for visual purpose and the index starts at 0. i.e. [1,2,3,4,...,n]

Now shuffle this dataset and then sort the data with different algorithms. For simplicity when we study sorting algorithms we divide it's operation into passes. Plot the current dataset (Data Vs Indices, in X vs Y fashion) at every pass the algorithms make. Now, combine the plots using an online video or gif tool (Giphy) and voila you can actually see where every algorithms get's it's name from


Libraries used:

  • numpy
  • random
  • matplotlib

About

Visualization of how sorting algorithms work. Displaying Data vs Index graph for real-time sorting in GIF.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages