Everything About ___
Live briefing

Everything about Treap

Random search tree data structure

In computer science, the treap and the randomized binary search tree are two closely related forms of binary search tree data structures that maintain a dynamic set of ordered keys and allow binary searches among the keys. After any sequence of insertions and deletions of keys, the shape of the tree is a random variable with the same probability distribution as a random binary tree; in particular, with high probability its height is proportional to the logarithm of the number of keys, so that each search, insertion, or deletion operation takes logarithmic time to perform. Wikipedia →

đź§­ Start here: a 6-step reading path

  1. Read the overview: TreapA 5-minute orientation
  2. Pick up a classic book: Data structures and algorithm analysis in CThe most-reprinted book on the subject
  3. Read the landmark paper: Association rule mining using treapCited 24 times
  4. Go sideways: Join-based tree algorithmsA closely related topic
  5. Go sideways: Weight-balanced treeA closely related topic

đź“– Definitions

Noun A type of randomized binary search tree where nodes are labelled with randomly chosen priority values and which is simultaneously a heap on those priorities.

🗂️ The subject at a glance

  1. Description
  2. Operations
  3. Randomized binary search tree

🏆 Landmark papers (most cited)

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

đź”— Related topics