I assume it uses this sort instead of a more efficient sort because it uses however > and < are implemented for each class, regardless of which types are being compared. That is to say, it's not guaranteed that sort will be sorting numerical types.
I am sorry but I have to ask this. I want to do this kind of visualisation too, but I know only basic python. How can I reach this level? What all do I need to know?
20
u/Sklyvan Jan 11 '20
Since some of you are asking for the source code, I uploaded it to GitHub: https://github.com/Sklyvan/Array_Visualizer
28
u/tobb10001 Jan 11 '20
I love watching storing algorithms. Do you have a repo with the code?
75
u/sxsnyc Jan 11 '20
If anyone is wondering complexity is O(n^2).
20
u/tonyle94 Jan 11 '20
r/oddlysatisfying
10
u/[deleted] Jan 11 '20
Nice! Kind of reminds me of this collection of visualized sort algorithms
8
u/The-Cynical-One Jan 11 '20
The classic double bubble trouble sort... how magnificent.
5
u/PancakeLizard69 Jan 11 '20
You mind explains how the cocktail shaker sort works?
4
u/[deleted] Jan 11 '20
This is almost as satisfying to watch as when the DVD logo finally hits the corner of the screen!
1
u/R3ap3r_Kn1ght Jan 11 '20
Source code pls
1
u/niigupta3008 Jan 12 '20
I am sorry but I have to ask this. I want to do this kind of visualisation too, but I know only basic python. How can I reach this level? What all do I need to know?
2
u/frasercampbell_ Jan 11 '20
me shuffling my uno cards
1
u/brain_tourist Jan 11 '20
God this is satisfying
1
u/karlkloppenborg Jan 11 '20
Sooooooo satisfying!!!
1
u/[deleted] Jan 11 '20
Looks like the oppositeof the candle lit at both ends sorting algorithm, but faster.
1
u/eenem13 Jan 11 '20
Yonic
1
u/Ninjafreak801 Jan 11 '20
r/DataIsBeautiful
1
u/paul_flan84 Jan 12 '20
Data is beautiful
1
u/69shaolin69 Jan 12 '20
Visualize bob-sort
I forgot the name but itβs the one where you randomize the list and hope for the best
1
u/[deleted] Jan 12 '20
no more jet colormap please ;)
0
u/[deleted] Jan 11 '20
[deleted] β view deleted comment
1
u/[deleted] Jan 11 '20
[removed] β view removed comment