Inspiration

I have always wanted to make this project since it's so fascinating to actually see how these algorithms work and to visually compare which one is faster.

What it does

This project visualizes array sorting with whatever algorithm the user wants and on which ever data set. There are five algorithms - merge sort, quick sort, insertion sort, selection sort and bubble sort and three data sets - Random elements, few unique elements and reversed sorted array. The algorithms can be visualized in either 2D or 3D. All the choices are to be made by the user through the GUI.

How I built it

It was built using tkinter and matplotlib. I took a course on algorithms to cover them in depth

Challenges I ran into

The real challenge was plotting the bars in 3D. I had to think about it a lot.

What I learned

I learned which algorithm is faster on what type of data set.

Built With

Share this project:

Updates