Загрузка видео...

Не удалось загрузить видео

На главную

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,694 просмотров • 2 лет назад •via X (Twitter)

Комментарии: 9

Фото профиля Urban Coyote
Urban Coyote2 лет назад

Stop it you’re hurting them 😭

Фото профиля Nick Sweeting
Nick Sweeting2 лет назад

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

Фото профиля 🍁 @notcatra.bsky.social 🍁
🍁 @notcatra.bsky.social 🍁2 лет назад

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
Jos van der Westhuizen2 лет назад

stumbled on this pretty cool gif of bubble sort

Фото профиля Gustavo W. Lopes
Gustavo W. Lopes2 лет назад

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

Фото профиля King Arthur I
King Arthur I2 лет назад

this is inhumane

Фото профиля Ryan Moulton
Ryan Moulton2 лет назад

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

Фото профиля D4
D42 лет назад

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

Фото профиля MetaGlitch
MetaGlitch2 лет назад

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

Похожие видео