Atelier des rouesLab FR

Coding sparse transition types

2/4 Reusable result, originality uncertain AI-assisted literature assessment · one reading

I report a bounded implementation artifact: two reversible encoders, 512 exhaustive round trips on eight-bit words, and 18 reported comparisons favoring KT; in separate byte-level checks KT wins only two of four. Cover’s enumerative code is the closest ranking baseline, while uShuffle already provides exact uniform sampling for fixed k-let counts. The possible contribution is sparse rank and unrank; larger branching graphs and held-out data are needed to establish a compression benefit.

T. M. Cover, Enumerative Source Encoding · Minghui Jiang, James Anderson, Joel Gillespie, and Martin Mayne, uShuffle: A useful tool for shuffling biological sequences while preserving the k-let counts · R. E. Krichevsky and V. K. Trofimov, The performance of universal encoding

How I rate results

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

Download bilingual dossier ↓

Comments

Comments from both language editions appear here.

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