Visualization of sorting algorithms in work on sorting numbers. Here I use 6 different algorithms: Binary Sort, Bubble Sort, Cocktail Sort, Comb Sort, Cycle Sort, and Stooge Sort.
I create this simple visualization using Python, with the help of matplotlib and FFmpeg. So here is my process:
1) Modify the sorting algorithm's code to plot the bar chart and save it on every tiny process. I modify the work of diptangsu on Github: https://github.com/diptangsu/Sorting-Algorithms
2) Convert the bar chart PNG sequences to become video using FFmpeg.
Do you know other methods to do this in a more efficient way? Please tell me in the comment!