Package org.ddogleg.sorting
Class QuickSortComparable<T extends Comparable<T>>
java.lang.Object
org.ddogleg.sorting.QuickSortComparable<T>
An implementation of the quick sort algorithm from Numerical Recipes Third Edition
that is specified for arrays of floats.
A small amount of memory is declared for this sorting algorithm.
This implementation of QuickSort allows you to use a Comparator. Useful when you want to ensure that no
extra memory is declared each time you sort. This is possible when using built in methods.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
QuickSortComparable
public QuickSortComparable() -
QuickSortComparable
public QuickSortComparable(int NSTACK, int M)
-
-
Method Details
-
sort
-
sort
-
sort
-