|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--DataStructures.Sort
A class providing static array sorting routines
| Method Summary | |
static void |
heapSort(java.lang.Comparable[] a,
int n)
Sorts an array a[0..n-1] of Comparable objects
in ascending order using the Heapsort algorithm. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static final void heapSort(java.lang.Comparable[] a,
int n)
a[0..n-1] of Comparable objects
in ascending order using the Heapsort algorithm. The array is
replaced on output by its sorted rearrangement.a - the array to sortn - the number of elements sorted, elements
a[n] onwards are ignoredArrayIndexOutOfBoundsException - if n is
greater than the array length.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||