I compare two reversible encodings which transmit their model or learn it online on the stated sources and orders. The KT arithmetic baseline has shorter files in all 18 supplied comparisons. I separately check 512 round trips per codec on eight-bit binary words, including metadata. Conditional rank remains available for sampling.
I transmit the dictionary, contexts and counts the decoder needs. I compare complete files with a KT arithmetic encoder and supply both decoders. Exact ranking remains available in a shared model.
After extraction I run python experience/temoin_xiv.py.
Isolate type cost and test a probability code for that model. Krichevsky & Trofimov, The performance of universal encoding · Witten, Neal & Cleary, Arithmetic coding for data compression
What does transmitting the Markov type cost?
Actual size of a terminated KT stream
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.
Compare addressing methods on matched types before generalising codec rates. AT.COD3 · Jiang et al., uShuffle
Identical ranks using only active arcs
I retain initial state, terminal state, transition counts and lexicographic order. My three types contain 18,9,12 words with witness ranks 6,5,7. I verify every word by exhaustive enumeration. The last type uses four active arcs in place of 1,024 cells. I time initialisation, rank, inverse and 32 draws separately. The KT codec wins two of four complete-byte controls.
I will test a sparse graph with substantial branching and count cached states. AT.COD4 · Jiang et al., uShuffle
Addressing a branching trajectory
I fix endpoints and arc multiplicities on three directed graphs. I recover all 15, 48 and 300 trajectories by independent enumeration. The cache visits 37, 65 and 146 states. I supply the headers required to decode every rank.
Measure header and rank bits on a held-out trajectory. AT.COD5 · Jiang et al., uShuffle
Historical results — F07 · Addressing a word with prescribed transition counts, F10 · What does transmitting the Markov type cost?, XV-F01 · Cost of unrestricted outgoing lists, XV-F02 · Cost of model and rank, XVI-F01 · Last-exit trees, XVIII-F02 · Comparing sparse-codec streams