public class MultiSort extends Object
| Constructor and Description |
|---|
MultiSort() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ascendingHeapSort(Comparable<?>[] A,
int[] B)
Sorts the given arrays in ascending order, using heap-sort.
|
static void |
ascendingHeapSort(double[] A,
int[] B,
short[] C)
Sorts the given arrays in ascending order, using heap-sort.
|
static void |
ascendingHeapSort(double[] A,
int[] B,
short[] C,
int topElements)
Sorts the top topElements of the given array in
ascending order, using heap sort.
|
static void |
ascendingHeapSort(int[] A,
double[] B,
short[] C,
int topElements)
ascendingHeapSort
|
static void |
descendingHeapSort(double[] A,
int[] B,
short[] C)
Sorts the given arrays in descending order, using heap-sort.
|
static void |
descendingHeapSort(double[] A,
int[] B,
short[] C,
int topElements)
Sorts the top topElements of the given array in
descending order, using heap sort for sorting the values
in ascending order and then reversing the order of a
specified number of elements.
|
public static final void ascendingHeapSort(double[] A,
int[] B,
short[] C)
A - double[] the first array to be sorted.B - int[] the second array to be sorted, according to the
values of the first array.C - short[] an additional array to sort by A.public static final void ascendingHeapSort(Comparable<?>[] A, int[] B)
A - double[] the first array to be sorted.B - int[] the second array to be sorted, according to the
values of the first array.public static final void descendingHeapSort(double[] A,
int[] B,
short[] C)
A - double[] the first array to be sorted.B - int[] the second array to be sorted, according to the
values of the first array.C - short[] an additional array to sort by A.public static final void ascendingHeapSort(double[] A,
int[] B,
short[] C,
int topElements)
A - double[] the first array to be sorted.B - int[] the second array to be sorted, according to the
values of the first array.C - short[] an additional array to sort by A.topElements - int the number of elements to be sorted.public static final void ascendingHeapSort(int[] A,
double[] B,
short[] C,
int topElements)
public static final void descendingHeapSort(double[] A,
int[] B,
short[] C,
int topElements)
A - double[] the first array to be sorted.B - int[] the second array to be sorted, according to the
values of the first array.C - short[] an additional array to sort by A.topElements - int the number of elements to be sorted.Terrier Information Retrieval Platform 5.2. Copyright © 2004-2019, University of Glasgow