Atelier des rouesLab FR
Objects/Documentation

blocs29.py

Two improving blocks can share the same early-construction budget · blocs29.py

Download ↓
"""Compose early-construction witnesses and compare bounded BFS to the unrestricted oracle."""
from itertools import product
from deux27 import limited
from quatre24 import oracle
from sept28 import path
import json
def study():
    result=[]
    for motif in (0,1):
        blocks=[]
        for length in (5,6):
            for letters in product('ABX',repeat=length):
                if len(set(letters))!=3:continue
                word=''.join(letters)
                if limited(word,motif,1)<limited(word,motif,0):blocks.append(word)
                if len(blocks)==4:break

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.