Objets/Documentation
temoin_xiv.py
Programme, données ou contrôle reproductible du dossier motifs.
Télécharger ↓"""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):