Package org.h2.dev.sort
Class InPlaceStableQuicksort<T>
- java.lang.Object
-
- org.h2.dev.sort.InPlaceStableQuicksort<T>
-
- Type Parameters:
T- the element type
public class InPlaceStableQuicksort<T> extends java.lang.ObjectA stable quicksort implementation that uses O(log(n)) memory. It normally runs in O(n*log(n)*log(n)), but at most in O(n^2).
-
-
Constructor Summary
Constructors Constructor Description InPlaceStableQuicksort()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> voidsort(T[] data, java.util.Comparator<T> comp)Sort an array using the given comparator.voidsortArray(T[] d, java.util.Comparator<T> c)Sort an array using the given comparator.
-