9 views

1 Answers

Bucket sort, or bin sort, is a sorting algorithm that works by distributing the elements of an array into a number of buckets. Each bucket is then sorted individually, either using a different sorting algorithm, or by recursively applying the bucket sorting algorithm. It is a distribution sort, a generalization of pigeonhole sort that allows multiple keys per bucket, and is a cousin of radix sort in the most-to-least significant digit flavor. Bucket sort can be implemented with comparisons and therefore can also be considered a comparison sort algorithm. The computational complexity depends on the algorithm used to sort each bucket, the number of buckets to use, and whether the input is uniformly distributed.

Bucket sort works as follows:

9 views

Related Questions

What is Polyphase merge sort?
1 Answers 5 Views
What is Tournament sort?
1 Answers 4 Views
What is Cocktail shaker sort?
1 Answers 4 Views
What is Pigeonhole sort?
1 Answers 4 Views
What is Quantum sort?
1 Answers 4 Views
What is Cascade merge sort?
1 Answers 10 Views
What is Word sort?
1 Answers 4 Views
What is Sort-en-Chalosse?
1 Answers 4 Views