A wavelet tree on the string "abracadabra". At each node the symbols of the string are projected onto two partitions of the alphabet, and a bitvector denotes to which partition each symbol belongs. Note that only the bitvectors are stored; the strings in the nodes are only for illustratory purposes. The Wavelet Tree is a succinct data structure to store strings in compressed space. It generalizes
![Wavelet Tree - Wikipedia](https://cdn-ak-scissors.b.st-hatena.com/image/square/9f024f44afca552b4eeaee3731c25c26795e7aac/height=288;version=1;width=512/https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2F0%2F01%2FWavelet_tree.png)