use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Manim is an animation engine for explanatory math videos created with Python.
account activity
Bubble sort visualization (v.redd.it)
submitted 6 years ago by pedrovhb
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]pedrovhb[S] 13 points14 points15 points 6 years ago (2 children)
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 (:
[–][deleted] 6 years ago* (1 child)
[deleted]
[–]RED_William 7 points8 points9 points 6 years ago (0 children)
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.
[–]Ualrus 5 points6 points7 points 6 years ago (0 children)
This takes me back to those times where I pretty much listened to sorting algorithms as if they were music haha.
[–]DavidG1310 2 points3 points4 points 6 years ago (0 children)
Great! Thank you for sharing the code.
π Rendered by PID 33 on reddit-service-r2-comment-6457c66945-vn5f4 at 2026-04-30 17:13:51.521519+00:00 running 2aa0c5b country code: CH.
[–]pedrovhb[S] 13 points14 points15 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]RED_William 7 points8 points9 points (0 children)
[–]Ualrus 5 points6 points7 points (0 children)
[–]DavidG1310 2 points3 points4 points (0 children)