Home▸Algorithms & AI▸Wavelet Tree Bit-Row Query Trace Lab

🌳 Wavelet Tree Bit-Row Query Trace Lab

Wavelet Tree Bit-Row Query Trace Lab

Algorithms & AI2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Wavelet Tree Bit-Row Query Trace Lab ↗ Open standalone

The simulator visualizes how an input sequence over a small alphabet is recursively split into a binary tree of bitvectors, and how a single access, rank, or select query travels down or up that tree using rank and select operations at each level to arrive at its answer.

🔬 What It Demonstrates

The simulator visualizes how an input sequence over a small alphabet is recursively split into a binary tree of bitvectors, and how a single access, rank, or select query travels down or up that tree using rank and select operations at each level to arrive at its answer.

🎮 How to Use

Enter or generate a sequence over a chosen small alphabet, watch the wavelet tree build level by level as the alphabet range is halved at each node, then pick an access, rank, or select query and step through the highlighted path the query takes through the tree, with each level's bitvector and its rank or select computation shown explicitly.

💡 Did You Know?

Did you know that the FM-index used by widely deployed genome aligners like BWA and Bowtie stores the entire Burrows-Wheeler-transformed genome as a wavelet tree, letting them count how many times a DNA pattern occurs in a multi-gigabase genome using only a few dozen rank operations, without ever decompressing the sequence?

⚙ Under the hood

Wavelet Tree Bit-Row Query Trace Lab

wavelet treesuccinct data structuresrank selectbitvectorrange quantileBlender

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)