public class HeapSort extends Object
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
- int[] the array to be sortedpublic static void heapSort(double[] A, int[] B, int topElements)
A
- int[] the array to be sortedtopElements
- int the number of elements to be sorted.public static void heapSort(int[] A, double[] B)
A
- int[] the array to be sortedpublic static void heapSort(int[] A, double[] B, int topElements)
A
- int[] the array to be sortedtopElements
- int the number of elements to be sorted.Terrier 4.0. Copyright © 2004-2014 University of Glasgow