- Varad Raut
- Sagar Pathare
- Chinmay Agrawal
Example usage:
// Note: To use template type deduction, compile with c++17 or above
// The example below will work with c++11
#include "wavelet_tree.h"
using namespace std;
int main() {
// Works with strings
wt::wavelet_tree<char> tree("alabar a la alabarda");
assert(tree.rank('a', tree.select('a', 3)) == 3);
// vector of strings too
wt::wavelet_tree<string> str_tree({"to", "be", "or", "not", "to", "be"});
assert(str_tree.access(3) == "not");
return 0;
}