public class HeapSort extends Object
| Constructor and Description | 
|---|
| HeapSort() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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 | 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 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 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 Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow