Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

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 görüntüleme • 1 yıl önce •via X (Twitter)

9 Yorum

Urban Coyote profil fotoğrafı
Urban Coyote1 yıl önce

Stop it you’re hurting them 😭

Nick Sweeting profil fotoğrafı
Nick Sweeting1 yıl önce

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

🍁 @notcatra.bsky.social 🍁 profil fotoğrafı
🍁 @notcatra.bsky.social 🍁1 yıl önce

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 profil fotoğrafı
Jos van der Westhuizen1 yıl önce

stumbled on this pretty cool gif of bubble sort

Gustavo W. Lopes profil fotoğrafı
Gustavo W. Lopes1 yıl önce

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

King Arthur I profil fotoğrafı
King Arthur I1 yıl önce

this is inhumane

Ryan Moulton profil fotoğrafı
Ryan Moulton1 yıl önce

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

D4 profil fotoğrafı
D41 yıl önce

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

MetaGlitch profil fotoğrafı
MetaGlitch1 yıl önce

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

Benzer Videolar