15 lines
713 B
C
15 lines
713 B
C
#ifndef HEAPSORT_H
|
|
#define HEAPSORT_H
|
|
//=============================================================================
|
|
#include "geracao.h"
|
|
//=============================================================================
|
|
void constroi(int *array, int tamHeap);
|
|
//=============================================================================
|
|
int getMaiorFilho(int *array, int i, int tamHeap);
|
|
//=============================================================================
|
|
void reconstroi(int *array, int tamHeap);
|
|
//=============================================================================
|
|
void heapsort(int *array, int n);
|
|
//=============================================================================
|
|
#endif
|