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

A priority queue of the integers \( [ 0 , n ) \) by a key of selection that also knows the least of a second key, the bound, among the ids it holds, beyond the book. More...

Files

file  ADS/priority/IndexedHeapPair.h
 A priority queue of the integers \( [ 0 , n ) \) by a key of selection that also knows the least of a second key, the bound, among the ids it holds, beyond the book: two heaps of IndexedDaryHeap [see IndexedDaryHeap.h] on the same ids, one by the keys and one by the bounds, so that top() is the id of least key and minBound() the least bound in \( O( 1 ) \), and every change, pop() included, is made on both heaps by the places of the id, in \( O( D \log_D s ) \).

Classes

class  ADS::IndexedHeapPair< K, Bd, D >
 the ids \( [ 0 , n ) \) by a key, the least on top, with the least of their bounds More...

Detailed description

A priority queue of the integers \( [ 0 , n ) \) by a key of selection that also knows the least of a second key, the bound, among the ids it holds, beyond the book.

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