45 for (
int i = 1; i <=
pq->
cnt; i++) {
81 int lim =
pq->
cnt / 2;
Memory allocation wrappers that exit on failure.
static void * gv_calloc(size_t nmemb, size_t size)
static void * gv_alloc(size_t size)
static void PQupheap(pq_t *pq, int k)
static void PQcheck(const pq_t *pq)
snode * PQremove(pq_t *pq)
int PQ_insert(pq_t *pq, snode *np)
void PQupdate(pq_t *pq, snode *n, int d)
static void PQdownheap(pq_t *pq, int k)
static int cnt(Dict_t *d, Dtlink_t **set)
void agerrorf(const char *fmt,...)
snode priority queue for shortPath in sgraph
a node of search graph sgraph, is created as a border segment between two adjusted cells of type cell...