Objects/Documentation
bits10.py
I provide the computation for “Counting the dictionary and intermediate integers”.
Download ↓"""Explicit type dictionary, adaptive bit likelihood and integer determinant costs."""
from fractions import Fraction as F
from collections import Counter
from itertools import product
from math import log2,ceil
from pathlib import Path
import json,zlib,hashlib
def determinant(n):
# Dirichlet tridiagonal minor of a symmetric weighted path (opposite directed arcs).
weights=[2**(i%5+1)+1 for i in range(n+1)]
a=[[0]*n for _ in range(n)]
for i in range(n):
a[i][i]=weights[i]+weights[i+1]
if i:a[i-1][i]=a[i][i-1]=-weights[i]
prev=1;bits=0