blog/content/posts/2024-07-20-treap/index.md
2024-07-20 19:24:35 +01:00

711 B

title date draft description tags categories series favorite disable_feed graphviz
Treap 2024-07-20T14:12:27+01:00 false A simpler BST
algorithms
data structures
python
programming
Cool algorithms
false false true

The Treap is a mix between a Binary Search Tree and a Heap.

Like a Binary Search Tree, it keeps an ordered set of keys in the shape of a tree, allowing for binary search traversal.

Like a Heap, it keeps associates each node with a priority, making sure that a parent's priority is always higher than any of its children.