Wrapping Up
Randomized treaps are a great example of a randomized data structure and, more importantly, a great example of how effective randomization is in simplifying algorithms. Red-black trees are notorious for making people’s heads spin, and yet treaps achieve similar results with insertion and deletion algorithms that require considerably fewer steps and conditions. We looked at some practical applications of red-black trees in the previous chapter, and randomized treaps can be used wherever red-black trees can.
In the next chapter, we’re going to take a slight detour from the theme of randomization. Because we’re already dealing with self-balancing trees, I want to introduce you to another such tree known as the B-tree. Besides being ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access