Hello,
When construction a huffman-shaped integer wavelet tree from a fixed-width integer, the result seems to be wrong:
wt_huff_int<> wt;
int_vector<8> vec = {3,12,4,4,5,1,6,4,2};
construct_im(wt, vec);
cout << "wt.sigma : " << wt.sigma << endl; //5
cout << wt << endl; //4 1 0 2 0 0 1 0 5 0 4 0 0 4 1 0 4 0 0 1 0 0 0 0
I noticed a similar issue #145 which is already closed. Unfortunately the supposed fix won't compile on recent versions of the sdsl (no matching function for call to ‘serialize(const sdsl::int_vector<64u>::raw_wrapper&, sdsl::osfstream&)’)
Regards & Thanks,
Jan