Concepts2
ποΈData StructureAdvanced
Wavelet Tree
A wavelet tree is a recursive data structure built over a sequenceβs alphabet that answers rank, select, and quantile (k-th smallest) queries in O(log Ο) time, where Ο is the number of distinct values.
#wavelet tree#wavelet matrix#rank select+11
ποΈData StructureAdvanced
Persistent Segment Tree
A persistent segment tree stores every historical version of an array-like data while supporting queries and updates in O(log n) time.
#persistent segment tree#path copying#kth smallest+12