parallel-sort icon indicating copy to clipboard operation
parallel-sort copied to clipboard

What algorithm is used in your code?

Open kimlongli opened this issue 7 years ago • 2 comments

I just wonder what algorithm is used in your code. The code related to mapping is difficult for me to understand. Thank you!

kimlongli avatar Jul 19 '18 15:07 kimlongli

It uses quick sort! Basically, it splits a vector into a few sub-vectors, then each sub-vector is sorted sequentially using std::sort in a separate thread. Finally the results are merged. The function std::sort in C++ is implemented based on the quick sort algorithm

baserinia avatar Aug 16 '18 17:08 baserinia

Hello~ I' wondering that what does the parameter sf (sampling factor) use for? I have known quick sort and introsort (used by std::sort()) But it seems that they does not have the parameter sampling factor.

a2468834 avatar Oct 19 '21 07:10 a2468834