aeds2/fonte/u03 Ordenação em memória pr.../c/heapsort.h

15 lines
715 B
C

#ifndef HEAPSORT_H
#define HEAPSORT_H
//=============================================================================
#include "geracao.h"
//=============================================================================
void construir(int *array, int tamHeap);
//=============================================================================
int getMaiorFilho(int *array, int i, int tamHeap);
//=============================================================================
void reconstruir(int *array, int tamHeap);
//=============================================================================
void heapsort(int *array, int n);
//=============================================================================
#endif