Prefix cost at weight five
I report 18-bit fixed-weight ranks, a body-size formula, 17,750 sign runs, and sample lengths at which the two prefix choices change cost; the listed wire checks make this a bounded, reusable artifact. Cover’s enumerative coding supplies the ranking framework, while Elias gamma and WebAssembly LEB128 specify the compared length codes. The record does not prove the run count beyond the finite range or give a general selection rule; extending the wire check past the first transitions is the limiting test.
Thomas M. Cover, “Enumerative Source Encoding” · Peter Elias, “Universal Codeword Sets and Representations of the Integers” · WebAssembly Core Specification, “Values”
How I rate resultsWhen does encoding the length cost one more byte?
- Gamma bytes
- 42
- Aligned bytes
- 41
- Difference
- 1
Unused bits in the last byte · 0