forked from simongog/sdsl-lite
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexpl-17.cpp
More file actions
Latest commit
15 lines (13 loc) · 359 Bytes
/
Copy pathexpl-17.cpp
File metadata and controls
15 lines (13 loc) · 359 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include<sdsl/suffix_arrays.hpp>
#include<iostream>
usingnamespacestd;
usingnamespacesdsl;
intmain()
{
csa_bitcompressed<> csa;
construct_im(csa, "abracadabra", 1);
cout << "csa.size(): " << csa.size() << endl;
cout << "csa.sigma : " << csa.sigma << endl;
cout << csa << endl;
cout << extract(csa, 0, csa.size()-1) << endl;
}