Atelier des rouesLab FR

Sampling a sparse trajectory

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

I report two implementation observations: 2,009 rank checks on active contexts and, for 64 contexts, reported median times of 1,014.48 ms with fractions and 473.51 ms with integers, including preparation and ranking. The 12,000 draws do not by themselves establish uniformity. Propp–Wilson and uShuffle already provide the arborescence-based exact sampler. The possible contribution is sparse-context optimization; it needs baseline timings and distribution checks across varied type classes.

James Gary Propp and David Bruce Wilson, How to Get a Perfectly Random Sample from a Generic Markov Chain and Generate a Random Spanning Tree of a Directed Graph · Minghui Jiang, James Anderson, Joel Gillespie, and Martin Mayne, uShuffle: A useful tool for shuffling biological sequences while preserving the k-let counts

How I rate results

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

Restricting algebra to active contexts

I report 2,009 checks of rank on active contexts. On the 64-context case, including setup and rank, the supplied medians are 1,014.48 ms with fractions and 473.51 ms with integers. The scope is ranking at fixed transition counts. XIX.F01 · Jiang et al., uShuffle

Sampling a chain with fixed transition counts

I compare sampling via a last-exit tree and Wilson with the direct precedent uShuffle. The deposit gives 12,000 draws on a type of size 45. Invertible addressing of a word is a separate question. XIX.F02 · 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 — XIX-F01 · Restricting algebra to active contexts, XIX-F02 · Sampling a chain with fixed transition counts, XX-F01 · Contracting forced parent arcs

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.