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

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

На главную

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 просмотров • 1 год назад •via X (Twitter)

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

Фото профиля Urban Coyote
Urban Coyote1 год назад

Stop it you’re hurting them 😭

Фото профиля Nick Sweeting
Nick Sweeting1 год назад

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

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

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 Westhuizen1 год назад

stumbled on this pretty cool gif of bubble sort

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

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

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

this is inhumane

Фото профиля Ryan Moulton
Ryan Moulton1 год назад

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

Фото профиля D4
D41 год назад

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

Фото профиля MetaGlitch
MetaGlitch1 год назад

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

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