Expand description
This module implements a Quad Wavelet Tree to support access, rank, and select queries on a vector of unsigned integers.
This data structure supports three operations:
get(i)
accesses thei
-th symbols of the indexed sequence;rank(s, i)
counts the number of occurrences of symbols
up to positioni
excluded;select(s, i)
returns the position of thei
-th occurrence of symbols
.
We can index vectors of length up to 2^{43} symbols.
Structs
- The generic RS is the data structure we use to index a quaternary sequence to support
access,
rank, and
select` queries.
Traits
- Alias for the trait bounds to be satisfied by a data structure to support
rank
andselect
queries at each level of the wavelet tree. We need an alias to avoid repeating a lot of bounds here and there. - Alias for the trait bounds of the type T to be indexable in the wavelet tree.