Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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 Aufrufe • vor 1 Jahr •via X (Twitter)

9 Kommentare

Profilbild von Urban Coyote
Urban Coyotevor 1 Jahr

Stop it you’re hurting them 😭

Profilbild von Nick Sweeting
Nick Sweetingvor 1 Jahr

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

Profilbild von 🍁 @notcatra.bsky.social 🍁
🍁 @notcatra.bsky.social 🍁vor 1 Jahr

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

Profilbild von Jos van der Westhuizen
Jos van der Westhuizenvor 1 Jahr

stumbled on this pretty cool gif of bubble sort

Profilbild von Gustavo W. Lopes
Gustavo W. Lopesvor 1 Jahr

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

Profilbild von King Arthur I
King Arthur Ivor 1 Jahr

this is inhumane

Profilbild von Ryan Moulton
Ryan Moultonvor 1 Jahr

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

Profilbild von D4
D4vor 1 Jahr

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

Profilbild von MetaGlitch
MetaGlitchvor 1 Jahr

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

Ähnliche Videos