Atelier des rouesLab FR
Register/AT.COD3
Decoded stream · AT.COD3

Actual size of a terminated KT stream

1/4 Educational or exploratory value AI-assisted literature assessment · one reading

I treat this as a bounded codec benchmark: the specified order-zero KT model and eight-byte header produce a decodable stream, but the supplied text and periodic blocks fare much worse than zlib. Krichevsky and Trofimov analyze universal encoding and redundancy, not this byte-aligned implementation; Cover gives the exact ranking alternative. The comparison usefully separates ideal code length from realized size, but shared decoder cost and corpus selection limit external inference.

Raphail E. Krichevsky and Victor K. Trofimov, The Performance of Universal Encoding · Thomas M. Cover, Enumerative Source Encoding

How I rate results

Assumptions

I fix binary KT, an eight-byte header, byte termination and zlib level six. I charge complete streams.

Result

I count an eight-byte header and decode every block with an order-zero binary KT model. On 1,024 text bytes my stream takes 1,016 bytes against 518 with zlib. On the periodic block it takes 355 against 20. Decoder code is shared by convention.

Prior work

Jiang et al., uShuffle · Bareiss, Sylvester’s identity and multistep integer-preserving Gaussian elimination · Krichevsky & Trofimov, The performance of universal encoding

Next question

Compare addressing methods on matched types before generalising codec rates.

Read the argument and prior work · View supporting evidence

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.