Verified experiment · AT.EX18.02
Amortize a histogram
1/4 Educational or exploratory value AI-assisted literature assessment · one readingThe seven-block threshold follows directly from fixed-weight ranking: C(32,16) needs 30 bits, and adding one six-bit weight header gives 216 bits for seven ranks versus 224 raw bits. Cover gives the relevant fixed-weight and Markov enumerative coding framework; Schalkwijk had already developed fixed-weight ranking. I find this a clear teaching example, but its gain assumes a common weight and omits signaling for segmentation or codec choice.
Thomas M. Cover, Enumerative Source Encoding · J. Pieter M. Schalkwijk, An Algorithm for Source Coding
How I rate resultsAssumptions
How many blocks pay for their shared weight and save a byte? I use Cover’s enumerative coding. The saving assumes constant weight within each group. Codec selection and segmentation overhead in real files still need measurement.
Result
At weight 16 one block takes five bytes, while eight take 31 bytes against 32 raw. The first strict saving occurs at seven blocks. I check all 256 eight-bit words and 1,056 stream configurations.
Prior work
Cover
Next question
Measure the cost of signalling boundaries when block weights vary.
Read the argument and prior work · View supporting evidence