30 #ifndef PAL_PRIORITYQUEUE_H 31 #define PAL_PRIORITYQUEUE_H 35 #define LEFT(x) (2*x+1) 36 #define RIGHT(x) (2*x+2) 37 #define PARENT(x) ((x-1)/2) 68 void remove(
int key );
69 void insert(
int key,
double p );
92 bool ( *greater )(
double l,
double r );
void insert(int key, double p)
void setPriority(int key, double new_p)
PriorityQueue(int n, int maxId, bool min)
Create a priority queue of max size n @param n max size of the queuet @param p external vector repres...
double ANALYSIS_EXPORT min(double x, double y)
Returns the minimum of two doubles or the first argument if both are equal.
void decreaseKey(int key)