ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
DaryHeap.h

A \( D \)-ary heap of plain items, beyond the book. More...

Files

file  ADS/priority/DaryHeap.h
 A \( D \)-ary heap of plain items, beyond the book: the heap of section 10.1 with \( D \) children per node in a vector, the children of the node \( i \) in the places \( D i + 1 , \ldots , D i + D \) [see BinaryTree.h], ordered by a predicate better( a , b ), true if \( a \) must come out before \( b \).

Classes

class  ADS::DaryHeap< T, Better, D, BottomUp, A >
 a \( D \)-ary heap of plain items, the best one by better() on top; pop() by the walk down from the top, or from the bottom up if BottomUp More...

Detailed description

A \( D \)-ary heap of plain items, beyond the book.

The definitions, the invariants and the costs of the area are in Theory of priority queues.