Objets/Documentation
graphe18.py
Partager deux multiplications · Programme Python reproductible.
Télécharger ↓"""Exact shared modular multipliers on four-bit words with free left shifts."""
import json
from collections import deque
from functools import lru_cache
from itertools import combinations_with_replacement
def closure(values):
return frozenset((v<<s)%16 for v in values for s in range(5))
@lru_cache(maxsize=1)
def search():
start=closure([1])
paths={start:()}
queue=deque([start])