public class FPBucketSort<T extends java.lang.Double> extends BucketSort<T>
Requirement: Sort a list of floating-point numbers that are uniformly distributed over a range, in "linear time".
BucketSort
ARRAY_IS_EMPTY, DATA_TYPE_NOT_SUPPORTED_YET, DECIMAL_RADIX, DELIMITER_COMMA, ELEMENT_NOT_FOUND, LIST_IS_EMPTY, OPERATION_NOT_SUPPORTED_YET
Constructor and Description |
---|
FPBucketSort() |
Modifier and Type | Method and Description |
---|---|
int |
bucketIndex(T obj,
int n) |
sort, sortList
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkArray, checkIntArray, checkList
public int bucketIndex(T obj, int n)
bucketIndex
in class BucketSort<T extends java.lang.Double>