← 🌳 Algorithms

🌳 Van Emde Boas Tree: Blazing-Fast Search on Bounded Integers

Steps:
Clusters visited:
Drag — rotate · Scroll — zoom

🌳 Van Emde Boas Tree: Blazing-Fast Search on Bounded Integers

The simulation demonstrates how a van Emde Boas tree recursively splits its universe into clusters and a summary structure, and visually traces how an insert, a successor query, or a predecessor query travels through this recursive hierarchy, jumping directly to the correct cluster via the summary instead of scanning through empty regions.

🔬 What It Demonstrates

The simulation demonstrates how a van Emde Boas tree recursively splits its universe into clusters and a summary structure, and visually traces how an insert, a successor query, or a predecessor query travels through this recursive hierarchy, jumping directly to the correct cluster via the summary instead of scanning through empty regions.

🎮 How to Use

Set the universe size to control how many bits and recursive levels the tree has, then insert a handful of integer keys one at a time and watch the cluster and summary structures populate. Run a successor or predecessor query on a chosen key to see the exact recursive path highlighted, including the moment the summary structure is consulted to skip past empty clusters.

💡 Did You Know?

Did you know that a van Emde Boas tree can find the successor of any key among millions of possible values using only a handful of recursive steps, roughly the logarithm of the logarithm of the universe size, which stays under five or six even for a universe of many billions of integers?