|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Array-based dynamic binary heap. More...
#include <algorithm>#include <cstddef>#include <stdexcept>#include <utility>#include <tpl_dynArray.H>#include <ah-errors.H>Go to the source code of this file.
Classes | |
| class | Aleph::DynArrayHeap< T, Compare > |
Dynamic heap (priority queue) backed by DynArray. More... | |
| struct | Aleph::DynArrayHeap< T, Compare >::Iterator |
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
Functions | |
| template<typename T , class Compare > | |
| size_t | Aleph::sift_up (DynArray< T > &a, const size_t l, const size_t r, Compare &cmp) noexcept |
| Restore heap order by moving an element up. | |
| template<typename T , class Compare > | |
| void | Aleph::sift_down (DynArray< T > &a, const size_t l, const size_t r, Compare &cmp) noexcept |
| Restore heap order by moving an element down. | |
Array-based dynamic binary heap.
Binary heap using DynArray for automatic growth. Efficient for priority queues with unknown size.
Definition in file tpl_dynArrayHeap.H.