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

The randomized meldable heap of Gambin and Malinowski, beyond the book, as section 10.2 of Morin's book presents it. More...

Files

file  ADS/priority/MeldableHeap.h
 The randomized meldable heap of Gambin and Malinowski, beyond the book, as section 10.2 of Morin's book presents it: a binary tree, of any shape, in which each item is not smaller than its parent, and whose only operation is the merge of two such trees: the smaller root stays the root, and the other tree is merged, recursively, with one of its two subtrees chosen by a fair coin.

Classes

class  ADS::MeldableHeap< T, Less, A >
 a randomized meldable heap, the smallest item by less on top More...

Detailed description

The randomized meldable heap of Gambin and Malinowski, beyond the book, as section 10.2 of Morin's book presents it.

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