A sorting algorithm to divide elements into various groups.
Process
- Create
n
empty buckets or lists in a matrix of buckets - Insert
arr[i]
intobucket[n*arr[i]]
A sorting algorithm to divide elements into various groups.
n
empty buckets or lists in a matrix of bucketsarr[i]
into bucket[n*arr[i]]