blog/content/posts/2024-07-27-treap-revisited/index.md

857 B

title date draft description tags categories series favorite disable_feed
Treap, revisited 2024-07-27T14:12:27+01:00 false An even simpler BST
algorithms
data structures
python
programming
Cool algorithms
false false

My [last post]({{< relref "../2024-07-20-treap/index.md" >}}) about the Treap showed an implementation using tree rotations, as is commonly done with AVL Trees and Red Black Trees.

But the Treap lends itself well to a simple and elegant implementation with no tree rotations. This makes it especially easy to implement the removal of a key, rather than the fiddly process of deletion using tree rotations.