|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Treap - A randomized binary search tree using heap-ordered priorities. More...
#include <tpl_treap.H>
Classes | |
| struct | Iterator |
| Iterator on nodes of the tree. More... | |
Public Types | |
| using | Node = NodeType< Key > |
Public Member Functions | |
| void | set_seed (const unsigned long seed) |
Seeds the Mersenne Twister of the treap, as gsl_rng_set() did: the priorities are from then on those of GSL for the seed. | |
| void | swap (Gen_Treap &tree) noexcept(std::is_nothrow_swappable_v< Compare >) |
Swaps in constant time the nodes and the comparison criteria of this and tree. | |
| Compare & | key_comp () noexcept |
| return the comparison criteria | |
| Compare & | get_compare () noexcept |
See key_comp(). | |
| Gen_Treap (const unsigned long seed, const Compare &__cmp=Compare()) | |
Builds an empty treap whose priorities are those of GSL for seed: it draws them from a Mersenne Twister, in dynamic memory. | |
| Gen_Treap () noexcept(std::is_nothrow_default_constructible_v< Node > and std::is_nothrow_default_constructible_v< Compare > and std::is_nothrow_copy_constructible_v< Compare >) | |
| Builds an empty treap with a comparison criteria built by default, which draws its priorities from a SplitMix64 with a seed of its own. | |
| Gen_Treap (const Compare &cmp) noexcept(std::is_nothrow_default_constructible_v< Node > and std::is_nothrow_copy_constructible_v< Compare >) | |
Builds an empty treap with the comparison criteria cmp, which draws its priorities from a SplitMix64 with a seed of its own. | |
| Gen_Treap (Gen_Treap &&tree) noexcept(bin_node_detail::nothrow_header_from_v< Node > and bin_node_detail::nothrow_compare_taken_v< Compare >) | |
Takes the nodes, the comparison criteria and the generator of tree, which keeps no nodes, and draws from then on from a SplitMix64 with a seed of its own: it can take nodes again. | |
| Random_Source & | random_source () noexcept |
| The source of random numbers, which gives the priorities. | |
| const Random_Source & | random_source () const noexcept |
| The source of random numbers, to look at it: its engine, or whether it is equal to another one. | |
| Gsl_Compatible_Rng & | rng () |
| The Mersenne Twister of the treap, which a treap that was given no seed makes here, and draws from it from then on. | |
| Node *& | getRoot () noexcept |
| Return the tree's root. | |
| Node * | search (const Key &key) const noexcept(nothrow_compare_v< Compare, Key >) |
| Search a key in a treap. | |
| Node * | insert (Node *p) noexcept(nothrow_compare_v< Compare, Key >) |
| Insert a node in a treap. | |
| Node * | search_or_insert (Node *p) noexcept(nothrow_compare_v< Compare, Key >) |
| Search or insert a key. | |
| Node * | insert_dup (Node *p) noexcept(nothrow_compare_v< Compare, Key >) |
| Insert a node in the tree. | |
| bool | verify () const |
Return true if this is a consistent treap. | |
| Node * | remove (const Key &key) noexcept(nothrow_compare_v< Compare, Key >) |
| Remove a key from the tree. | |
| void | join (Gen_Treap &t, Gen_Treap &dup) noexcept |
Join this with t filtering the duplicated keys. | |
| void | join_dup (Gen_Treap &t) noexcept |
Join this with t independently of the presence of duplicated keys. | |
| void | join_exclusive (Gen_Treap &t) noexcept |
Join exclusive of this with t | |
| bool | split_key (const Key &key, Gen_Treap &t1, Gen_Treap &t2) noexcept(nothrow_compare_v< Compare, Key >) |
| Split the tree according to a key. | |
| void | split_key_dup (const Key &key, Gen_Treap &t1, Gen_Treap &t2) noexcept(nothrow_compare_v< Compare, Key >) |
| Split the tree according to a key that could be in the tree. | |
Private Member Functions | |
| Node * | insert (Node *root, Node *p) noexcept(nothrow_compare_v< Compare, Key >) |
| Node * | search_or_insert (Node *&root, Node *p) noexcept(nothrow_compare_v< Compare, Key >) |
| Node * | insert_dup (Node *root, Node *p) noexcept(nothrow_compare_v< Compare, Key >) |
| Node * | remove (Node *&root, const Key &key) noexcept(nothrow_compare_v< Compare, Key >) |
| void | join_dup (Node *&t1, Node *t2) noexcept |
| void | join (Node *&t1, Node *t2, Node *&dup) noexcept |
Static Private Member Functions | |
| static unsigned long | generator_seed (const unsigned long seed) noexcept |
| static Node * | join_exclusive (Node *t1, Node *t2) noexcept |
Private Attributes | |
| Node | head |
| The type of node. | |
| Node * | head_ptr |
| Node *& | tree_root |
| Random_Source | r |
| Compare | cmp |
Treap - A randomized binary search tree using heap-ordered priorities.
A Treap (tree + heap) is a randomized binary search tree that combines BST properties on keys with heap properties on randomly assigned priorities. Each node has a key (BST-ordered) and a random priority (heap-ordered).
The dual ordering (BST for keys, heap for priorities) creates a unique tree structure for any set of keys with given priorities, ensuring good balance with high probability.
| NodeType | Node template (TreapNode or TreapNodeVtl). |
| Key | The type of keys stored in the tree. |
| Compare | Comparison functor for ordering keys. |
Definition at line 156 of file tpl_treap.H.
| using Aleph::Gen_Treap< NodeType, Key, Compare >::Node = NodeType<Key> |
Definition at line 159 of file tpl_treap.H.
|
inline |
Builds an empty treap whose priorities are those of GSL for seed: it draws them from a Mersenne Twister, in dynamic memory.
| [in] | seed | The seed, taken through an unsigned int, modulo 2^32 - 1, as it was for GSL. |
| [in] | __cmp | The comparison criteria, which the treap copies. |
| std::bad_alloc | If there is not enough memory for the Mersenne Twister, or what the default construction of the key of the header node or the copy of __cmp throws. |
Definition at line 223 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::head_ptr, Aleph::Min_Priority, and Aleph::PRIO().
|
inlinenoexcept |
Builds an empty treap with a comparison criteria built by default, which draws its priorities from a SplitMix64 with a seed of its own.
It does not allocate.
It is a constructor apart from the one that takes the comparison, and not a default argument of that one: GCC and Clang do not count a default argument in the noexcept of the implicit default constructor of a treap that inherits these, and what the construction of the comparison threw would end the program there.
| what | the default construction of the key of the header node or of the comparison, or the copy of the comparison, throws; nothing when they are noexcept. |
Definition at line 244 of file tpl_treap.H.
|
inlinenoexcept |
Builds an empty treap with the comparison criteria cmp, which draws its priorities from a SplitMix64 with a seed of its own.
It does not allocate.
| [in] | cmp | The comparison criteria, which the treap copies. |
| what | the default construction of the key of the header node or the copy of cmp throws; nothing when both are noexcept. |
Definition at line 262 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::head_ptr, Aleph::Min_Priority, and Aleph::PRIO().
|
inlinenoexcept |
Takes the nodes, the comparison criteria and the generator of tree, which keeps no nodes, and draws from then on from a SplitMix64 with a seed of its own: it can take nodes again.
It does not allocate.
It builds no key, if it can: the key of the header node is built by default when that cannot throw; else it is that of the header node of tree, moved, when the move of a key cannot throw (see bin_node_detail::header_from()).
| [in,out] | tree | The treap to move. It keeps its comparison criteria, which are copied: from a const one, or from one that is not const, if they have only that copy. Criteria that cannot be copied are moved, and tree keeps criteria that were moved from. |
| what | the copy of the comparison criteria throws, or their move if they cannot be copied; and what the default construction of the key of the header node throws, with a key whose move may throw too. Then tree keeps its nodes, but not its generator: it draws from a SplitMix64 with a seed of its own. Nothing when they are noexcept. |
Definition at line 292 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::head_ptr, Aleph::Min_Priority, Aleph::PRIO(), and Aleph::Gen_Treap< NodeType, Key, Compare >::tree_root.
|
inlinestaticprivatenoexcept |
Definition at line 170 of file tpl_treap.H.
References Aleph::Gsl_Compatible_Rng::max(), and seed.
|
inlinenoexcept |
See key_comp().
Definition at line 211 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::key_comp().
|
inlinenoexcept |
Return the tree's root.
Definition at line 338 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::tree_root.
Referenced by main(), TEST(), TEST(), TreapTest::tree_empty(), TreapTest::tree_size(), and write_treap().
|
inlinenoexcept |
Insert a node in a treap.
insert(p) inserts the node p in this treap.
| [in] | p | pointer to the node to be inserted |
p->get_key() is not in the tree, then p is inserted and this node pointer is returned. Otherwise, it is returned nullptr. | anything | that the comparison throws; the tree changes only after the last comparison, so its links and nodes are left as they were, without p; not so the random generator: the priority of p was drawn before the first comparison. |
noexcept only if the comparison cannot throw, so that what it throws reaches the caller. Definition at line 458 of file tpl_treap.H.
References Aleph::Random_Source::get(), Aleph::Gen_Treap< NodeType, Key, Compare >::insert(), Aleph::PRIO(), Aleph::Gen_Treap< NodeType, Key, Compare >::r, and Aleph::Gen_Treap< NodeType, Key, Compare >::tree_root.
|
inlineprivatenoexcept |
Definition at line 360 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::cmp, Aleph::Gen_Treap< NodeType, Key, Compare >::insert(), KEY, LLINK, Aleph::PRIO(), RLINK, root(), Aleph::rotate_to_left(), and Aleph::rotate_to_right().
Referenced by Aleph::Gen_Treap< NodeType, Key, Compare >::insert(), Aleph::Gen_Treap< NodeType, Key, Compare >::insert(), TreapTest::insert_values(), Aleph::Gen_Treap< NodeType, Key, Compare >::join(), main(), TEST(), and write_treap().
|
inlinenoexcept |
Insert a node in the tree.
This method does not fail. It always inserts.
| [in] | p | pointer to the node to insert |
p pointer | anything | that the comparison throws; the tree changes only after the last comparison, so its links and nodes are left as they were, without p; not so the random generator: the priority of p was drawn before the first comparison. |
noexcept only if the comparison cannot throw, so that what it throws reaches the caller. Definition at line 512 of file tpl_treap.H.
References Aleph::Random_Source::get(), Aleph::Gen_Treap< NodeType, Key, Compare >::insert_dup(), Aleph::PRIO(), Aleph::Gen_Treap< NodeType, Key, Compare >::r, and Aleph::Gen_Treap< NodeType, Key, Compare >::tree_root.
|
inlineprivatenoexcept |
Definition at line 424 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::cmp, Aleph::Gen_Treap< NodeType, Key, Compare >::insert_dup(), KEY, LLINK, Aleph::PRIO(), RLINK, root(), Aleph::rotate_to_left(), and Aleph::rotate_to_right().
Referenced by Aleph::Gen_Treap< NodeType, Key, Compare >::insert_dup(), Aleph::Gen_Treap< NodeType, Key, Compare >::insert_dup(), Aleph::Gen_Treap< NodeType, Key, Compare >::join(), and Aleph::Gen_Treap< NodeType, Key, Compare >::join_dup().
|
inlinenoexcept |
Join this with t filtering the duplicated keys.
join(t, dup) produces a treap result of join of this and t. The resulting tree is stored in this.
Nodes containing duplicated keys are inserted in the randomized tree dup. The nodes could belong to any of two trees
| [in] | t | ramdomized tree to join with this |
| [out] | dup | ramdomized tree where nodes containing duplicated keys are inserted |
std::terminate()). noexcept because it moves the nodes one by one: a comparison that threw in the middle would leave nodes out of every tree. Definition at line 670 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::join(), and Aleph::Gen_Treap< NodeType, Key, Compare >::tree_root.
|
inlineprivatenoexcept |
Definition at line 632 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::insert(), Aleph::Gen_Treap< NodeType, Key, Compare >::insert_dup(), Aleph::Gen_Treap< NodeType, Key, Compare >::join(), KEY, l, LLINK, Aleph::Gen_Treap< NodeType, Key, Compare >::r, Aleph::Gen_Treap< NodeType, Key, Compare >::remove(), and RLINK.
Referenced by Aleph::Gen_Treap< NodeType, Key, Compare >::join(), and Aleph::Gen_Treap< NodeType, Key, Compare >::join().
|
inlinenoexcept |
Join this with t independently of the presence of duplicated keys.
join(t) produces a treap result of join of this and t. The resulting tree is stored in this.
| [in] | t | ramdomized tree to join with this keys are inserted |
std::terminate()). noexcept because it moves the nodes one by one: a comparison that threw in the middle would leave nodes out of every tree. Definition at line 690 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::join_dup(), and Aleph::Gen_Treap< NodeType, Key, Compare >::tree_root.
|
inlineprivatenoexcept |
Definition at line 620 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::insert_dup(), Aleph::Gen_Treap< NodeType, Key, Compare >::join_dup(), l, LLINK, Aleph::Gen_Treap< NodeType, Key, Compare >::r, and RLINK.
Referenced by Aleph::Gen_Treap< NodeType, Key, Compare >::join_dup(), and Aleph::Gen_Treap< NodeType, Key, Compare >::join_dup().
|
inlinenoexcept |
Join exclusive of this with t
Exclusive means that all the keys of this are lesser than all the keys of t. This knowlege allows a more effcient way for joining that when the keys ranks are overlapped. However, use very carefully because the algorithm does not perform any check and the result would be incorrect.
| [in] | t | ramdomized tree to exclusively join with this keys are inserted |
Definition at line 707 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::join_exclusive(), and Aleph::Gen_Treap< NodeType, Key, Compare >::tree_root.
|
inlinestaticprivatenoexcept |
Definition at line 585 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::join_exclusive(), LLINK, Aleph::PRIO(), and RLINK.
Referenced by Aleph::Gen_Treap< NodeType, Key, Compare >::join_exclusive(), Aleph::Gen_Treap< NodeType, Key, Compare >::join_exclusive(), and Aleph::Gen_Treap< NodeType, Key, Compare >::remove().
|
inlinenoexcept |
return the comparison criteria
Definition at line 208 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::cmp.
Referenced by Aleph::Gen_Treap< NodeType, Key, Compare >::get_compare().
|
inlinenoexcept |
The source of random numbers, to look at it: its engine, or whether it is equal to another one.
Definition at line 309 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::r.
|
inlinenoexcept |
The source of random numbers, which gives the priorities.
Definition at line 305 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::r.
|
inlinenoexcept |
Remove a key from the tree.
| [in] | key | to remove |
key was found in the tree, nullptr otherwise | anything | that the comparison throws; the tree changes only after the last comparison, so it is left as it was. |
noexcept only if the comparison cannot throw, so that what it throws reaches the caller. Definition at line 539 of file tpl_treap.H.
References Aleph::and, Aleph::Gen_Treap< NodeType, Key, Compare >::cmp, Aleph::Gen_Treap< NodeType, Key, Compare >::head_ptr, KEY, LLINK, Aleph::PRIO(), RLINK, Aleph::rotate_to_left(), Aleph::rotate_to_right(), and Aleph::Gen_Treap< NodeType, Key, Compare >::tree_root.
Referenced by Aleph::Gen_Treap< NodeType, Key, Compare >::join(), main(), and Aleph::Gen_Treap< NodeType, Key, Compare >::remove().
|
inlineprivatenoexcept |
Definition at line 602 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::cmp, Aleph::Gen_Treap< NodeType, Key, Compare >::join_exclusive(), KEY, LLINK, Aleph::Gen_Treap< NodeType, Key, Compare >::remove(), RLINK, and root().
|
inline |
The Mersenne Twister of the treap, which a treap that was given no seed makes here, and draws from it from then on.
| std::bad_alloc | If the treap has no Mersenne Twister and there is not enough memory for it. |
Definition at line 322 of file tpl_treap.H.
References Aleph::Random_Source::mersenne_twister(), and Aleph::Gen_Treap< NodeType, Key, Compare >::r.
Referenced by TEST().
|
inlinenoexcept |
Search a key in a treap.
| [in] | key | to be searched |
key if this is found; otherwise, nullptr is returned | anything | that the comparison throws; the search does not modify the tree, so it is left as it was. |
noexcept only if the comparison cannot throw, so that what it throws reaches the caller. Definition at line 350 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::cmp, Aleph::searchInBinTree(), and Aleph::Gen_Treap< NodeType, Key, Compare >::tree_root.
Referenced by main(), and write_treap().
|
inlineprivatenoexcept |
Definition at line 394 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::cmp, KEY, LLINK, Aleph::PRIO(), RLINK, root(), Aleph::rotate_to_left(), Aleph::rotate_to_right(), and Aleph::Gen_Treap< NodeType, Key, Compare >::search_or_insert().
Referenced by Aleph::Gen_Treap< NodeType, Key, Compare >::search_or_insert(), and Aleph::Gen_Treap< NodeType, Key, Compare >::search_or_insert().
|
inlinenoexcept |
Search or insert a key.
search_or_insert(p) searches in the tree the key KEY(p). If this key is found, then a pointer to the node containing it is returned. Otherwise, p is inserted.
| [in] | p | node containing a key to be searched and eventually inserted |
p is found, then a pointer to the containing key in the tree is returned. Otherwise, p is inserted and returned | anything | that the comparison throws; the tree changes only after the last comparison, so its links and nodes are left as they were, without p; not so the random generator: the priority of p was drawn before the first comparison. |
noexcept only if the comparison cannot throw, so that what it throws reaches the caller. Definition at line 490 of file tpl_treap.H.
References Aleph::Random_Source::get(), Aleph::PRIO(), Aleph::Gen_Treap< NodeType, Key, Compare >::r, Aleph::Gen_Treap< NodeType, Key, Compare >::search_or_insert(), and Aleph::Gen_Treap< NodeType, Key, Compare >::tree_root.
|
inline |
Seeds the Mersenne Twister of the treap, as gsl_rng_set() did: the priorities are from then on those of GSL for the seed.
A treap that was given no seed makes its Mersenne Twister here.
| [in] | seed | The seed. |
| std::bad_alloc | If the treap has no Mersenne Twister and there is not enough memory for it; then it is unchanged. |
Definition at line 186 of file tpl_treap.H.
References Aleph::Random_Source::Mersenne_Twister, Aleph::Gen_Treap< NodeType, Key, Compare >::r, Aleph::Random_Source::seed(), and seed.
Referenced by main(), TreapTest::SetUp(), TEST(), and TEST().
|
inlinenoexcept |
Split the tree according to a key.
It splits with the comparison criteria of the tree.
| [in] | key | for splitting |
| [out] | t1 | tree with keys lesser than key |
| [out] | t2 | tree with keys greater than key |
true if tree was split; that is if key is not in the tree. Otherwise, if key is in the tree, false is returned | anything | that the comparison throws; every comparison comes before the first change, so the three trees are left as they were. |
noexcept only if the comparison cannot throw, so that what it throws reaches the caller. Definition at line 727 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::cmp, Aleph::split_key_rec(), and Aleph::Gen_Treap< NodeType, Key, Compare >::tree_root.
|
inlinenoexcept |
Split the tree according to a key that could be in the tree.
split_dup(key, t1, t2) splits the tree according to key in two trees t1 which contains the key lesser than key and t2 which contains the keys greater or equal than key. It splits with the comparison criteria of the tree.
| [in] | key | for splitting |
| [out] | t1 | resulting tree with the keys lesser than key |
| [out] | t2 | resulting tree with the keys greater or equal than key |
| anything | that the comparison throws; every comparison comes before the first change, so the three trees are left as they were. |
noexcept only if the comparison cannot throw, so that what it throws reaches the caller. Definition at line 748 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::cmp, Aleph::split_key_dup_rec(), and Aleph::Gen_Treap< NodeType, Key, Compare >::tree_root.
|
inlinenoexcept |
Swaps in constant time the nodes and the comparison criteria of this and tree.
| [in,out] | tree | the tree to swap with. |
| what | the swap of the comparison criteria throws, which goes first: then the nodes stay where they were. |
Definition at line 198 of file tpl_treap.H.
References Aleph::Gen_Treap< NodeType, Key, Compare >::cmp, Aleph::Gen_Treap< NodeType, Key, Compare >::r, Aleph::Random_Source::swap(), and Aleph::Gen_Treap< NodeType, Key, Compare >::tree_root.
|
inline |
Return true if this is a consistent treap.
It throws what the comparator throws.
Definition at line 524 of file tpl_treap.H.
References Aleph::and, Aleph::check_bst(), Aleph::Gen_Treap< NodeType, Key, Compare >::cmp, Aleph::is_treap(), and Aleph::Gen_Treap< NodeType, Key, Compare >::tree_root.
Referenced by TEST().
|
private |
Definition at line 166 of file tpl_treap.H.
Referenced by Aleph::Gen_Treap< NodeType, Key, Compare >::insert(), Aleph::Gen_Treap< NodeType, Key, Compare >::insert_dup(), Aleph::Gen_Treap< NodeType, Key, Compare >::key_comp(), Aleph::Gen_Treap< NodeType, Key, Compare >::remove(), Aleph::Gen_Treap< NodeType, Key, Compare >::remove(), Aleph::Gen_Treap< NodeType, Key, Compare >::search(), Aleph::Gen_Treap< NodeType, Key, Compare >::search_or_insert(), Aleph::Gen_Treap< NodeType, Key, Compare >::split_key(), Aleph::Gen_Treap< NodeType, Key, Compare >::split_key_dup(), Aleph::Gen_Treap< NodeType, Key, Compare >::swap(), and Aleph::Gen_Treap< NodeType, Key, Compare >::verify().
|
private |
The type of node.
Definition at line 162 of file tpl_treap.H.
|
private |
|
private |
Definition at line 165 of file tpl_treap.H.
Referenced by Aleph::Gen_Treap< NodeType, Key, Compare >::insert(), Aleph::Gen_Treap< NodeType, Key, Compare >::insert_dup(), Aleph::Gen_Treap< NodeType, Key, Compare >::join(), Aleph::Gen_Treap< NodeType, Key, Compare >::join_dup(), Aleph::Gen_Treap< NodeType, Key, Compare >::random_source(), Aleph::Gen_Treap< NodeType, Key, Compare >::random_source(), Aleph::Gen_Treap< NodeType, Key, Compare >::rng(), Aleph::Gen_Treap< NodeType, Key, Compare >::search_or_insert(), Aleph::Gen_Treap< NodeType, Key, Compare >::set_seed(), and Aleph::Gen_Treap< NodeType, Key, Compare >::swap().
|
private |
Definition at line 164 of file tpl_treap.H.
Referenced by Aleph::Gen_Treap< NodeType, Key, Compare >::Gen_Treap(), Aleph::Gen_Treap< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Treap< NodeType, Key, Compare >::insert(), Aleph::Gen_Treap< NodeType, Key, Compare >::insert_dup(), Aleph::Gen_Treap< NodeType, Key, Compare >::join(), Aleph::Gen_Treap< NodeType, Key, Compare >::join_dup(), Aleph::Gen_Treap< NodeType, Key, Compare >::join_exclusive(), Aleph::Gen_Treap< NodeType, Key, Compare >::remove(), Aleph::Gen_Treap< NodeType, Key, Compare >::search(), Aleph::Gen_Treap< NodeType, Key, Compare >::search_or_insert(), Aleph::Gen_Treap< NodeType, Key, Compare >::split_key(), Aleph::Gen_Treap< NodeType, Key, Compare >::split_key_dup(), Aleph::Gen_Treap< NodeType, Key, Compare >::swap(), and Aleph::Gen_Treap< NodeType, Key, Compare >::verify().