| |
| | Sorting Algorithms |
 | | Bucket sort initially creates a "counts" array whose size is the size of the range of all possible values for the data we are sorting, eg. |
 | | This time, several bucket like sorts are performed (one for each digit), but instead of having a counts array representing the range of all possible values for the data, it represents all of the possible values for each individual digit, which in decimal numbering is only 10. |
 | | Firstly a bucked sort is performed, using only the least significant digit to sort it by, then another is done using the next least significant digit, until the end, when you have done the number of bucket sorts equal to the maximum number of digits of your biggest number. |
| tanksoftware.com /tutes/uni/sorting.html (1784 words) |
|