Data Structures UFC  1.0.0
Essential Data Structures for C language
Data Structures | Typedefs | Functions
pqueue.h File Reference

Go to the source code of this file.

Data Structures

struct  PQueue
 Priority Queue Data Structure. Like a normal queue about push/pop logic, but each individual now heave a weight. A inner heap implementation it's provided. More...
 

Typedefs

typedef struct PQueue PQueue
 

Functions

PQueuepqueue_create ()
 
void pqueue_insert (PQueue *pq, int x)
 
int pqueue_extract_max (PQueue *pq)
 
void pqueue_increase_keys (PQueue *pq, int k, int v)
 
int pqueue_maximum (PQueue *pq)
 
void pqueue_free (PQueue *pq)
 
void pqueue_print (PQueue *pq)
 
void pqueue_println (PQueue *pq)
 

Typedef Documentation

typedef struct PQueue PQueue

Function Documentation

PQueue* pqueue_create ( )
int pqueue_extract_max ( PQueue pq)
void pqueue_free ( PQueue pq)
void pqueue_increase_keys ( PQueue pq,
int  k,
int  v 
)
void pqueue_insert ( PQueue pq,
int  x 
)
int pqueue_maximum ( PQueue pq)
void pqueue_print ( PQueue pq)
void pqueue_println ( PQueue pq)