Atelier des rouesLab FR
Objects/Documentation

barriere30.py

Clearing memory between two proof blocks · barriere30.py

Download ↓
"""Early proof construction across an explicit empty-memory and availability barrier."""
from pathlib import Path
from collections import deque
from functools import lru_cache
from itertools import product
import json
from deux27 import limited

def bfs(a,b,motif,cap,keep_one=False):
    word=a+b;cut=len(a);n=len(word)
    ps=[0,motif]+[{'A':1,'B':2,'X':3}[x] for x in word]
    q=deque([(0,0,0,0)]);seen=set()
    while q:
        mask,i,used,cost=q.popleft()
        if i==n:return cost
        state=mask,i,used

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.