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

The PRIORITYQUEUE on a pairing heap, beyond the book. More...

Files

file  ADS/priority/PairingHeap.h
 The PRIORITYQUEUE [see PriorityQueue.h] on a pairing heap, beyond the book: the self-adjusting heap of Fredman, Sedgewick, Sleator and Tarjan, the simplest of the heaps with decrease-key and, in the experiments of Stasko and Vitter and of Larkin, Sen and Tarjan, the fastest one with pointers in practice.

Classes

class  ADS::PairingHeap< T, P, Aux, A >
 a priority queue on a pairing heap, two-pass, or auxiliary two-pass if Aux More...

Variables

template<class T, std::totally_ordered P, bool Aux, class A>
constexpr bool ADS::enable_stable_references< PairingHeap< T, P, Aux, A > >
 the items of a pairing heap stay in their nodes, which the handles point to [see Capabilities.h]

Detailed description

The PRIORITYQUEUE on a pairing heap, beyond the book.

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

Variable documentation

◆ enable_stable_references< PairingHeap< T, P, Aux, A > >

template<class T, std::totally_ordered P, bool Aux, class A>
bool ADS::enable_stable_references< PairingHeap< T, P, Aux, A > >
inlineconstexpr
Initial value:
=
true

the items of a pairing heap stay in their nodes, which the handles point to [see Capabilities.h]