15 lines
715 B
C
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
|