Package org.h2.dev.sort
Class InPlaceStableMergeSort<T>
- java.lang.Object
-
- org.h2.dev.sort.InPlaceStableMergeSort<T>
-
- Type Parameters:
T- the element type
public class InPlaceStableMergeSort<T> extends java.lang.ObjectA stable merge sort implementation that uses at most O(log(n)) memory and O(n*log(n)*log(n)) time.
-
-
Constructor Summary
Constructors Constructor Description InPlaceStableMergeSort()
-
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.
-