داده ساختار تیریپ
Sign in to saveAlso known as randomized binary search tree
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.
Key facts
- Data structure.name
- Treap
- Data structure.type
- Randomized binary search tree
- Data structure.space_avg
- O(n)
- Data structure.space_worst
- O(n)
- Data structure.search_avg
- O(log n)
- Data structure.search_worst
- O(n)
- Data structure.insert_avg
- O(log n)
- Data structure.insert_worst
- O(n)
- Data structure.delete_avg
- O(log n)
- Data structure.delete_worst
- O(n)
- Data structure.build_avg
- O(nlogn)
- Data structure.build_worst
- O(nlogn)
- Data structure.image
- treap.svg
via Wikipedia infobox
Wikidata facts
- Image
- Treap.svg
Show 4 more facts
- studied by
- graph theory
- Commons category
- Treap
- time of discovery or invention
- 1989-00-00
- native label
- Treap
Sources (3)
via Wikidata · CC0