Objects/Documentation
ordre.py
Reproducible check of XIII, included in the couvertures dossier.
Download ↓"""Selected computational core from XIII, with a standalone exact control."""
from itertools import permutations, product
from random import Random
from functools import reduce
from operator import or_
import json
def supports(C, b):
return [set((i for (i, opts) in enumerate(C) if any((m >> h & 1 for (m, w) in opts)))) for h in range(b)]
def width(order, S):
pos = {v: i for (i, v) in enumerate(order)}
a = [0] * (len(order) + 1)
for s in S:
if s:
l = min((pos[x] for x in s))