Objets/Documentation
blocs09.py
Je fournis le calcul pour « Combien coûte l’index des écarts ? ».
Télécharger ↓"""Indexed delta blocks on a finite real CRT constellation, with exact bounds."""
from bisect import bisect_right
from math import gcd
import json
def encode(n):
data=bytearray()
while n>=128:
data.append(128+(n&127));n>>=7
data.append(n)
return data
def experiment():
period=2*3*5*7*11*13