public class HeapSort extends Object
NB: This class is not thread-safe
| Constructor and Description | 
|---|
| HeapSort() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | heapSort(double[] A,
        int[] B)Sorts the given array using heap-sort in ascending order | 
| static void | heapSort(double[] A,
        int[] B,
        int topElements)Sorts the top topElements of the given array in 
 ascending order using heap sort. | 
| static void | heapSort(int[] A,
        double[] B)Sorts the given array using heap-sort in ascending order | 
| static void | heapSort(int[] A,
        double[] B,
        int topElements)Sorts the top topElements of the given array in 
 ascending order using heap sort. | 
public static void heapSort(double[] A,
            int[] B)
A - double[] the array to be sortedB - int[] another array to be sorted in ascending order of A.public static void heapSort(double[] A,
            int[] B,
            int topElements)
A - double[] the array to be sortedB - int[] another array to be sorted in ascending order of A.topElements - int the number of elements to be sorted.public static void heapSort(int[] A,
            double[] B)
A - int[] the array to be sortedB - double[] another array to be sorted in ascending order of A.public static void heapSort(int[] A,
            double[] B,
            int topElements)
A - int[] the array to be sortedB - double[] another array to be sorted in ascending order of A.topElements - int the number of elements to be sorted.Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow