Objets/Documentation
adresses20.py
Je fournis le code pour reproduire ce calcul. adresses20.py
Télécharger ↓"""Eight conditional ranks on the karate graph: cold/warm coefficient counts and sorted walk."""
from itertools import combinations
from time import perf_counter_ns
import json
from stables19 import unrank,graph,polynomial,count
def run(v):
mask=((1<<34)-1)&~(1<<v)&~graph()[v]
polynomial.cache_clear()
t=perf_counter_ns();size=count(mask,7);prep=perf_counter_ns()-t
ranks=sorted({i*(size-1)//7 for i in range(8)})
def address(shared):
times=[];misses=0;groups=[];max_entries=0
for r in ranks:
if not shared:polynomial.cache_clear()