File: expl-23.cpp

package info (click to toggle)
libsdsl 2.1.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 3,980 kB
  • sloc: cpp: 42,286; makefile: 1,171; ansic: 318; sh: 201; python: 27
file content (16 lines) | stat: -rw-r--r-- 497 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <sdsl/suffix_trees.hpp>
#include <iostream>

using namespace sdsl;
using namespace std;

int main()
{
    cst_sct3<csa_wt<wt_huff<rrr_vector<>>>, lcp_support_sada<>> cst1;
    construct(cst1, "english.200MB", 1);
    cout << "cst1.lcp in MiB : " << size_in_mega_bytes(cst1.lcp) << endl;
    util::clear(cst1);
    cst_sct3<csa_wt<wt_huff<rrr_vector<>>>, lcp_dac<>> cst2;
    construct(cst2, "english.200MB", 1);
    cout << "cst2.lcp in MiB : " << size_in_mega_bytes(cst2.lcp) << endl;
}