forked from simongog/sdsl-lite
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexpl-21.cpp
More file actions
Latest commit
16 lines (14 loc) · 478 Bytes
/
Copy pathexpl-21.cpp
File metadata and controls
16 lines (14 loc) · 478 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include<sdsl/suffix_trees.hpp>
#include<iostream>
usingnamespacesdsl;
usingnamespacestd;
intmain()
{
cst_sct3<> cst;
construct_im(cst, "umulmundumulmum", 1);
cout << "inner nodes : " << cst.nodes() - cst.csa.size() << endl;
auto v = cst.select_child(cst.child(cst.root(), 'u'),1);
auto d = cst.depth(v);
cout << "v : " << d << "-[" << cst.lb(v) << "," << cst.rb(v) << "]" << endl;
cout << "extract(cst, v) : " << extract(cst, v) << endl;
}