#include <cstdio>
#include "rbtree.h"
-
+#include "Tools.h"
#ifndef uchar
#define uchar unsigned char
#endif
-#ifndef LOGN
-#define LOGN 64
-#endif
-const int logn = LOGN;
+const int logn = (W * 2);
//upperBound = 2 * logn;
//lowerBound = logn / 2;
ulong subTreePositions; //number of positions stored in the subtree rooted at this node
ulong subTreeRank; //number of bits set in the subtree rooted at this node
- std::bitset<2*logn> *block; // 4 bytes
+ std::bitset<2*logn> *block; // 4 words
BVNode()