Heap Sort

public class HeapSort {
    static final int SIZE=15;
    static void heapSort(int a[],int n)
    {
        int i,j,h,k;
        int t;
        
        for(i=n/2-1;i>=0;i--)
        {
            while(2*i+10;i--)
        {
            t=a[0];
            a[0]=a[i];
            a[i]=t;
            k=0;
            while(2*k+1

你可能感兴趣的:(Heap Sort)