Atelier des rouesLab FR
Objects/Documentation

adresses20.py

I provide the code for this calculation. adresses20.py

Download ↓
"""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()

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.