encyclopegia.org

Wavelet Tree

The wavelet tree is a succinct data structure to store strings in compressed space. It generalizes the \mathbf{rank}_q and \mathbf{select}_q operations defined on bitvectors to arbitrary alphabets. Originally introduced to represent compressed suffix arrays, it has found application in several contexts. The tree is defined by recursively partitioning the alphabet into pairs of subsets; the leaves correspond to individual symbols of the alphabet, and at each node a bitvector stores whether a symbol of the string belongs to one subset or the other. The name derives from an analogy with the wavelet transform for signals, which recursively decomposes a signal into low-frequency and high-frequency components.

The wavelet tree is a succinct data structure to store strings in compressed space. It generalizes the \mathbf{rank}_q and \mathbf{select}_q operations defined on bitvectors to arbitrary alphabets. Originally introduced to represent compressed suffix arrays, it has found application in several contexts. The tree is defined by recursively partitioning the alphabet into pairs of subsets; the leaves correspond to individual symbols of the alphabet, and at each node a bitvector stores whether a symbol of the string belongs to one subset or the other. The name derives from an analogy with the wavelet transform for signals, which recursively decomposes a signal into low-frequency and high-frequency components. Let \Sigma be a finite alphabet with \sigma= . By using succinct dictionaries in the nodes, a string s \in \Sigma^* can be stored in H_0(s) + o( \log \sigma) , where H_0(s) is the order-0 empirical entropy of s . If the tree is balanced, the operations \mathbf{access} , \mathbf{rank}_q , and \mathbf{select}_q can be supported in O(\log \sigma) time. if W.bitvector[i] = 0 return access(i - rank(W.bitvector, i), W.left) else return access(rank(W.bitvector, i), W.right) In this context, the rank of a position i in a bitvector b is the number of ones that appear in the first i positions of b . Because the rank can be calculated in O(1) by using succinct dictionaries, any S[i] in string S can be accessed in O(\log \sigma) time, as long as the tree is balanced. ==External links==

References

No reference rows published for this article.

Cite this article

MLA

"Wavelet Tree." encyclopegia.org, 2026, https://encyclopegia.org/wiki/wavelet-tree. Accessed 24 November 2026.

Chicago

"Wavelet Tree." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/wavelet-tree.

APA

encyclopegia.org. (2026). Wavelet Tree. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/wavelet-tree

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Ti -Tree

stub · references available

Siberian Tree Frog

stub · references available

Olive-tree Warbler

stub · references available

Tree Pipit

stub · references available

Matschie's tree-kangaroo

stub · references available

phylogenetic tree

stub · references available

Gray-bellied pencil-tailed tree-mouse

stub · references available

Pallid Atlantic Tree-rat

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1356198171 · 0.5 · snapshot enwiki-001356198171

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.