Discussion on Random Binary Search Trees
Discover more aspects regarding random binary search trees.
We'll cover the following
Additional notes
Random binary search trees have been studied extensively.
where is the unique solution on the interval of the equation and Furthermore, the variance of the height is constant.
The name Treap
was coined by Treap
s and some of their variants. However, their basic structure was
studied much earlier by
One possible space-optimization of the Treap
data structure is the elimination of the explicit storage of the priority p
in each node. Instead, the priority of a node, u
, is computed by hashing u
’s address in memory. Although a number of hash functions will probably work well for this in
practice, for the important parts of the proof of Lemma 7.1 to remain
valid, the hash function should be randomized and have the min-wise independent property: For any distinct values
, each of the hash values should be distinct with high probability and, for each
,
for some constant . One such class of hash functions that is easy to implement and fairly fast is tabulation hashing.
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy