Atelier des rouesLaboratoire EN
Objets/Documentation

seuil13.py

Je fournis le matériel du contrôle AT.T6.

Télécharger ↓
"""Paired end-to-end cost by load, with exact prefix and select controls."""
import argparse,json,tracemalloc
from random import Random
from statistics import median
from time import perf_counter_ns
from charges12 import Calendar,Material

def run(measure=False):
    out=[]
    for m,n in [(60,84),(61,83)]:
        for density in ('sparse','dense'):
            a={x for x in range(m) if x%5 in ((0,) if density=='sparse' else (0,1,2))}
            b={x for x in range(n) if x%7 in ((0,) if density=='sparse' else (0,1,2,5))}
            ref=Material(m,a,n,b);rng=Random(1313)
            loads=[list(range(256)),[rng.randrange(-9000,9001) for _ in range(256)],[0,1,63,0]*64]
            for profile,load in zip(('sequential','scattered','repeat'),loads):

Lire dans son contexte

Commentaires

Les commentaires en français et en anglais sont réunis ici.

La discussion reste consultable. J’ouvrirai les participations dès que la protection antispam sera configurée.