rasksort
Rasksort is a sorting algorithm that combines randomized sampling with adaptive partitioning to sort arbitrary sequences efficiently, particularly those with partial order or skewed distributions. The method aims to employ inexpensive distribution estimation from a sample to guide the division of the input into manageable subproblems.
The core idea of rasksort is to proceed in phases. First, a small random sample of elements
In terms of performance, the average-case time complexity of rasksort is O(n log n) with high probability,
Variants and implementations include rasksort-hybrid (combining a secondary quicksort for small buckets), rasksort-inplace (memory-efficient version), and