forked from csanjuanc/cBiK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMinHeap.h
43 lines (34 loc) · 855 Bytes
/
MinHeap.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
42
/*
* 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: MinHeap.h
* Author: carloco
*
* Created on December 20, 2017, 2:41 PM
*/
#ifndef MINHEAP_H
#define MINHEAP_H
class MinHeap {
//private:
double** heap;
int numElementos = 0;
int maxElementos = 0;
void Intercambia(int i, int j);
void minHeapify(int i, int j);
public:
//MinHeap(const MinHeap& orig);
//virtual ~MinHeap();
MinHeap(int maxsize);
void insert(long posElement, float distanceToQuery);
void buildHeap();
int getMinPoint();
double getMinScore() ;
double** getArray();
int getCantidad();
void showArray();
void imprimirDistancias();
};
#endif /* MINHEAP_H */