However, in the paper, Xor Filters: Faster and Smaller Than Bloom and Cuckoo Filters, the size of the array $c$ should be
$$
c = \lfloor 1.23 \cdot |S| \rfloor + 32
$$
I think maybe change the getArrayLength method to { return (int) (32 + (long) FACTOR_TIMES_100 * size / 100); } could work
Hi, I notice that the arrayLength in Xor8 and Xor16 are written as:
However, in the paper, Xor Filters: Faster and Smaller Than Bloom and Cuckoo Filters, the size of the array $c$ should be $$ c = \lfloor 1.23 \cdot |S| \rfloor + 32 $$
I think maybe change the getArrayLength method to
{ return (int) (32 + (long) FACTOR_TIMES_100 * size / 100); }
could work