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