#include "util.h"
#include "array.h"
Go to the source code of this file.
Data Structures | |
| struct | Heap_t |
| Heap data structure. More... | |
Typedefs | |
| typedef Heap_t | Heap_t |
Functions | |
| Heap_t * | Heap_Init (int(*)(char *, char *)) |
| Create a heap with 0 entries. | |
| Heap_t * | Heap_InitN (int(*)(char *, char *), int n) |
| Create a heap with N entries. | |
| void | Heap_Insert (Heap_t *, char *) |
| Insert an entry into a heap. | |
| int | Heap_Size (Heap_t *) |
| Returns the number of elements in the heap. | |
| char * | Heap_ReadMax (Heap_t *) |
| Return the max element of the heap; does not change heap. | |
| void | Heap_Heapify (Heap_t *) |
| Take a heap which satisfies the heap property everywhere but possibly the root, and make it into a heap. | |
Definition in file heap.h.
| void Heap_Heapify | ( | Heap_t * | ) |
| Heap_t* Heap_Init | ( | int(*)(char *, char *) | ) |
| Heap_t* Heap_InitN | ( | int(*)(char *, char *) | , | |
| int | n | |||
| ) |
| void Heap_Insert | ( | Heap_t * | , | |
| char * | ||||
| ) |
| char* Heap_ReadMax | ( | Heap_t * | ) |
| int Heap_Size | ( | Heap_t * | ) |