Loading video...

Video Failed to Load

Go Home

which sorting algorithm keeps up with constant random updates best? at every second in this animation, a random item is taken (blue), and its value is changed

82,620 views • 1 year ago •via X (Twitter)

9 Comments

Urban Coyote's profile picture
Urban Coyote1 year ago

Stop it you’re hurting them 😭

Nick Sweeting's profile picture
Nick Sweeting1 year ago

How do I know if it's working without sound?

🍁 @notcatra.bsky.social 🍁's profile picture
🍁 @notcatra.bsky.social 🍁1 year ago

Rather than using a sorting algorithm, which will have to move on average N/2 elements to accommodate a changed value, isn’t it better just to use either a heap or a self-balancing binary tree? These are data structures specifically designed for this task

Jos van der Westhuizen's profile picture
Jos van der Westhuizen1 year ago

stumbled on this pretty cool gif of bubble sort

Gustavo W. Lopes's profile picture
Gustavo W. Lopes1 year ago

Well, that's one way to make merge and quicksort misearable.

King Arthur I's profile picture
King Arthur I1 year ago

this is inhumane

Ryan Moulton's profile picture
Ryan Moulton1 year ago

Bubble sort would come out much better if you did alternating sweeps in opposite directions.

D4's profile picture
D41 year ago

Knowing the obsession with randomness in the complexity community, I'm sure there are many un-readable papers on this.

MetaGlitch's profile picture
MetaGlitch1 year ago

Special requirements may warrant special algorithms. How about an alternating bubble sort that switches between walking upwards and downwards the array?

Related Videos