|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.dev.sort.InPlaceStableMergeSort<T>
T - the element typepublic class InPlaceStableMergeSort<T>
A stable merge sort implementation that uses at most O(log(n)) memory and O(n*log(n)*log(n)) time.
| Constructor Summary | |
|---|---|
InPlaceStableMergeSort()
|
|
| Method Summary | ||
|---|---|---|
static
|
sort(T[] data,
java.util.Comparator<T> comp)
Sort an array using the given comparator. |
|
void |
sortArray(T[] data,
java.util.Comparator<T> comp)
Sort an array using the given comparator. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InPlaceStableMergeSort()
| Method Detail |
|---|
public static <T> void sort(T[] data,
java.util.Comparator<T> comp)
data - the data array to sortcomp - the comparator
public void sortArray(T[] data,
java.util.Comparator<T> comp)
data - the data array to sortcomp - the comparator
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||