8
u/RED_William Dec 03 '19
Very nice, but you do not have to check what has already been sorted on each iteration. After n iterations at least the last n items will be sorted.
5
u/Ualrus Dec 03 '19
This takes me back to those times where I pretty much listened to sorting algorithms as if they were music haha.
3
14
u/pedrovhb Dec 02 '19
Hey, guys!
I think Manim is awesome and I'm trying to learn it. Figured bubble sort was a cool simple algorithm to make a visualization for in order to start getting a grasp of it.
Source code is available here for whoever wants to take a look or tell me how I can improve and use Manim more efficiently (: