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

Two double-ended priority queues of plain items, beyond the book. More...

Files

file  ADS/priority/MinMaxHeap.h
 Two double-ended priority queues of plain items, beyond the book: the best and the worst item by better( a , b ) (\( a \) before \( b \)) both at hand, both removable in \( O( \log n ) \) time.

Classes

class  ADS::MinMaxHeap< T, Better >
 a min-max heap of plain items: the best and the worst by better() More...
class  ADS::IntervalHeap< T, Better >
 an interval heap of plain items: the best and the worst by better() More...

Detailed description

Two double-ended priority queues of plain items, beyond the book.

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