I wanna implement a fast algorithm for a homework, but using parallel processing for this task. I heard that the parallel version of Quicksort is the best choice, but I’m not sure of this… maybe Heapsort is a good idea. Which algorithm do you think is the best one for a parallelized environment, and why?
I wanna implement a fast algorithm for a homework, but using parallel processing for
Share
Quick sort can split the unsorted list into two halves, but unfortunately, the halves aren’t guaranteed to be anywhere near even. So one machine (or half of a cluster of machines) could get 20 entries, and the other half could get 20 billion.
I can’t think of a good way to make heapsort work in parallel. It can be done, but man, that feels really counterintuitive.
Merge sort is the one I think you want.