-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMaxHeap.h
42 lines (33 loc) · 835 Bytes
/
MaxHeap.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: MaxHeap.h
* Author: carloco
*
* Created on December 20, 2017, 2:41 PM
*/
#ifndef MAXHEAP_H
#define MAXHEAP_H
class MaxHeap {
//private:
double** heap;
int numElementos = 0;
int maxElementos = 0;
void Intercambia(int i, int j);
void maxHeapify(int i, int j);
public:
//MaxHeap(const MaxHeap& orig);
//virtual ~MaxHeap();
MaxHeap(int maxsize);
void insert(long posElement, float distanceToQuery);
void buildHeap();
double getDistanceMax() ;
double** getArray();
int getCantidad();
void showArray();
void imprimirDistancias();
};
#endif /* MAXHEAP_H */