Data Structures Lerax 1.0.0
Essential Data Structures for C language
Loading...
Searching...
No Matches
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

◆ PQueue

typedef struct PQueue PQueue

Function Documentation

◆ pqueue_create()

PQueue * pqueue_create ( )

◆ pqueue_extract_max()

int pqueue_extract_max ( PQueue * pq)

◆ pqueue_free()

void pqueue_free ( PQueue * pq)

◆ pqueue_increase_keys()

void pqueue_increase_keys ( PQueue * pq,
int k,
int v )

◆ pqueue_insert()

void pqueue_insert ( PQueue * pq,
int x )

◆ pqueue_maximum()

int pqueue_maximum ( PQueue * pq)

◆ pqueue_print()

void pqueue_print ( PQueue * pq)

◆ pqueue_println()

void pqueue_println ( PQueue * pq)