Atelier des rouesLab FR
Objects/Documentation

seuils10.py

I provide checks for threshold counting and arithmetic state collisions.

Download ↓
"""Fixed prior selector, held-out thresholds, isolated timing and wheel state collision."""
import argparse,json,subprocess,sys,tracemalloc
from math import gcd,isqrt
from pathlib import Path
from time import perf_counter_ns
from statistics import median
from plages import run,oracle
from bisect import bisect_right
HERE=Path(__file__).resolve().parent
CASES=[[405000+d,810000] for d in (-3,0,3)]
MODEL=json.loads((HERE/'modele-08.json').read_bytes())

def exact():
    ref=oracle(810000);results=[]
    for seq in CASES:
        expected=[bisect_right(ref,x) for x in seq]

Read in context

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.