Multithreaded Sorting

preview_player
Показать описание
One of the advantages to QuickSort and Mergesort is that they can be multithreaded nicely. QuickSort is tail recursive, meaning each step does some work, then passes it on to the next step, and MergeSort is head recursive, where it has the next step do the work, then adds it's work to it.

Both are very efficient sorting algorithms with great multithreading capabilities. QuickSort does suffer if it makes a poor pivot choice (I use median of first, last, and middle value). Where MergeSort has to deal with array copying.

Both visualizations are very heavially multithreaded, more so than would generally be practical in most impelmentations as the threads are not running at full speed. The visualization has 10,240 point split among up to 512 threads.
Рекомендации по теме
Комментарии
Автор

The only algorithm that beats this one, is the YouTube algorithm which suggested me this masterpiece after 9 years

mihagolod
Автор

I can hear the noise in my head. Boin, boin, boin, boooin.

manchul
Автор

Multithreading is also a key to make a pretty fast and realistic gravity sort.

pawelipkowski
Автор

So the real question is who's gonna make the next most efficient sorting algorithm

ashheilborn
Автор

Yes, you have been summoned by the algorithm to watch a video on algorithms

blueyay
Автор

12 years later and its still getting recommended

waterysad
Автор

Awesome vid but you forgot to add the earrape

legorockfan
Автор

I have no idea what any of this means but it looks cool

focusedfuture
Автор

Whenever I see these kinds of videos I always expect the god sort to show up. You know, the one that goes at the end and makes you deaf if you're wearing headphones and raised the volume because you thought it was too quiet at the start.

OhWaker
Автор

Watching this video on full screen made me think my computer suffered an error.

oompalumpus
Автор

i'm so confused as to why these are trending but human beings like it

hri
Автор

Should be a loading screen icon. So cool

HotboxedCoffin
Автор

It's not FUN without the cool woop wooop sounds!

operator
Автор

id like to see bitonic sort multithreaded compared to these

MrZauberwuerfel
Автор

It's been 11 years and this is now classified as a short.... Time

casev
Автор

Me and the boys watching color sorting at 3 am:

TallgeeseThree
Автор

Everyone is Gangster until Bubble walk into the building 😈

mostlymessingabout
Автор

Parallel odd-even sort, brick sort, bitonic sort, odd-even merge sort, pairwise sorting network

groszak
Автор

I was so afraid the last one wouldn't finish before the video

welikerosafloyd
Автор

Thanks to youtube shorts! YT algorithm now finds us best ever less than a minute content straight from a decade ago.

teekamsuthar