Atelier des rouesLab FR
Objects/Documentation

distances20.py

I provide the code for this calculation. distances20.py

Download ↓
"""Paired latency for direct unranking and walking from a known rank."""
from random import Random
from statistics import median
from time import perf_counter_ns
from math import factorial
from platform import python_version
import json
from sauts18 import unrank_fast,unrank,flip_length


def study():
    rng=Random(19001);n=9;period=factorial(n)
    starts=[rng.randrange(period) for _ in range(32)]
    rows=[]
    for gap in range(17,64):
        jump=[];walk=[];prep=[]

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.