am->use();
this->c=c;
c->use();
- root = new wt_node_internal(symbols, n, 0, c, bmb);
+ uint *done = new uint[n/W+1];
+ for (uint i = 0; i < n/W+1; i++)
+ done[i] = 0;
+ root = new wt_node_internal(symbols, n, 0, c, bmb, 0, done);
+ delete [] done;
+ delete [] symbols;
symbols = 0; // Already deleted!
// for(uint i=0;i<n;i++)
// symbols[i] = (uchar)am->unmap((uint)symbols[i]);
uint static_sequence_wvtree::rankLessThan(uint &symbol, uint pos) {
uint s = am->map(symbol);
- std::cout << "lessthan..." << std::endl;
+// std::cout << "lessthan..." << std::endl;
uint r = root->rankLessThan(s, pos, 0, c);
symbol = am->unmap(s);
return r;