BucketSort in Java

by javadream on 13 Dec 10
0
 
577 downloads
0

Bucket sort is a non-comparing sorting algorithm. It can be very efficient for sorting closed small ranged numbers. Because, it running time is O(dn), where d is the difference between minimum and maximum input value. It uses queue as bucket for each position. If the numbers are arbitrary without any range or the range is too high, this sorting algorithm is not preferred. Because, it will take huge amount of memory for inputs with large range.

Bookmark and Share

Relevant links

You must login or register to post comments