Analysis of information sources in references of the Wikipedia article "插值排序" in Chinese language version.
Definition: See histogram sort.
Definition: See histogram sort.
Another variant of bucket sort known as histogram sort or counting sort adds an initial pass that counts the number of elements that will fall into each bucket using a count array. Using this information, the array values can be arranged into a sequence of buckets in-place by a sequence of exchanges, leaving no space overhead for bucket storage.
平均時間複雜度
Note that if k is chosen to be , then bucket sort runs in average time, given a uniformly distributed input.
Another variant of bucket sort known as histogram sort or counting sort adds an initial pass that counts the number of elements that will fall into each bucket using a count array. Using this information, the array values can be arranged into a sequence of buckets in-place by a sequence of exchanges, leaving no space overhead for bucket storage.
Note that if k is chosen to be , then bucket sort runs in average time, given a uniformly distributed input.