6.9 Bucket Sort
6.9 Bucket Sort Bucket sort distributes elements into groups, sorts each group, and then concatenates the results. It relies on an assumption about the input distribution. When elements are spread roughly uniformly over a known range, bucket sort can run in linear time. Problem You have an array A[0..n-1] of real numbers in a known interval, typically [0, 1) . You want a sorting algorithm that exploits this range and...