Duration 2:32

Sorting 1000+ Number Using 6 Sorting Algorithms (in 3 minutes) - Visualization with Python

553 watched
0
14
Published 21 May 2020

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!

Category

Show more

Comments - 3