#include "gluos.h"
#include <stddef.h>
#include <assert.h>
#include <limits.h>
#include "memalloc.h"
#include "priorityq-heap.c"
#include "priorityq-sort.h"
Macros | |
#define | GT(x, y) (! LEQ(x,y)) |
#define | LT(x, y) (! LEQ(y,x)) |
#define | Swap(a, b) do{PQkey *tmp = *a; *a = *b; *b = tmp;}while(0) |
Functions | |
void | pqDelete (PriorityQ *pq, PQhandle curr) |
void | pqDeletePriorityQ (PriorityQ *pq) |
PQkey | pqExtractMin (PriorityQ *pq) |
int | pqInit (PriorityQ *pq) |
PQhandle | pqInsert (PriorityQ *pq, PQkey keyNew) |
int | pqIsEmpty (PriorityQ *pq) |
PQkey | pqMinimum (PriorityQ *pq) |
PriorityQ * | pqNewPriorityQ (int(*leq)(PQkey key1, PQkey key2)) |
Definition at line 89 of file priorityq.c.
Definition at line 248 of file priorityq.c.
Definition at line 77 of file priorityq.c.
Definition at line 203 of file priorityq.c.
int pqInit | ( | PriorityQ * | pq | ) |
Definition at line 92 of file priorityq.c.
Definition at line 174 of file priorityq.c.
int pqIsEmpty | ( | PriorityQ * | pq | ) |
Definition at line 242 of file priorityq.c.
Definition at line 224 of file priorityq.c.
Definition at line 50 of file priorityq.c.