Atelier des rouesLab FR
Objects/Documentation

fusion_ordres.py

I count interleavings between common positions.

Download ↓
"""Glue two circular orders by counting shuffles between consecutive shared positions."""
import argparse
from collections import Counter
from functools import lru_cache
from fractions import Fraction
from itertools import permutations
import json
from math import comb, factorial, gcd, prod
from pathlib import Path
from statistics import median
from time import perf_counter_ns

HERE=Path(__file__).resolve().parent
TARGETS={"F8":(8,3,5,(3,2,1,0)), "archive9":(9,3,7,(3,2,1,0)),
         "fresh10":(10,3,7,(0,2,5,1))}

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.