Objets/Documentation
deficience21.py
Je fournis le code pour cette étude. Le coût exact d’une alarme sans date
Télécharger ↓"""Finite minimax TV deficiency. Fractions verify a kernel and a dual lower bound."""
from fractions import Fraction as F
from itertools import product
from math import prod
import json
from ordre20 import laws, MAIN
def tv(p,q):
return sum(abs(a-b) for a,b in zip(p,q))/2
def push(law,k):
return [sum(a*v for a,v in zip(law,col)) for col in zip(*k)]