Objects/Documentation
temoin_xiv.py
Code, data or reproducible check for the motifs dossier.
Download ↓"""Small Elias–Fano representation for sorted half-addresses; exhaustive access checks."""
from itertools import combinations
import json
def split(points,universe):
if not points:return 0,0,0
width=max(0,(universe//len(points)).bit_length()-1)
low=high=0
for i,x in enumerate(points):
low|=(x% (1<<width))<<(width*i)
high|=1<<((x>>width)+i)
return width,low,high
def access(code,index):