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.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.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.topElements
- int the number of elements to be sorted.public static final void ascendingHeapSort(int[] A, double[] B, short[] C, int topElements)
A
- B
- C
- 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.topElements
- int the number of elements to be sorted.Terrier 4.0. Copyright © 2004-2014 University of Glasgow