Bucket Sort
Time Complexity - O(N log N) || Space Complexity - O(N) In bucket sort, we create buckets first, using some formula. After the creation of the bucket, we one by one put the elements into the buckets, again using some formula. After we put all the elements into created buckets, we sort the elements bucketwise using any sorting algorithm like quicksort, mergesort, etc After sorting elements in all the buckets, we concatenate the elements from all the buckets together. The biggest advantage of Bucket Sort compared to other sort is that each bucket can be sorted independently. Hence, it is a great suite for distributed computing. Suppose we have given a very large array of Person objects and we have to sort the people in increasing order of age. We know it is a large array hence efficiency is very important. Also, we know that the value of 'age' lies in a small range. Bucket sort is perfect for these kinds of situations. We can make small multiple buckets of 1 different year