java.lang.Object
org.jgrapht.util.RadixSort
Sorts the specified list of integers into ascending order using the Radix Sort method.
This algorithms runs in $O(N + V)$ time and uses $O(N + V)$ extra memory, where $V = 256$.
If $N \leq RadixSort.CUT\_OFF$ then the standard Java sorting algorithm is used.
The specified list must be modifiable, but need not be resizable.
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
-
Field Details
-
CUT_OFF
Deprecated, for removal: This API element is subject to removal in a future version.usesetCutOff(int)
instead
-
-
Method Details
-
setCutOff
public static void setCutOff(int cutOff) -
sort
Sort the given list in ascending order.- Parameters:
list
- the input list of integers
-
setCutOff(int)
instead