Atelier des rouesLab FR
Applications/Software testing

Splitting a test campaign

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

I treat this as a reproducible benchmark package: it records per-distance timings, separates setup, and shows that a threshold fitted on one batch needs an independent-session test. Zaks already gives suffix-reversal generation with rank/unrank; Myrvold–Ruskey gives linear-time rank/unrank in another order. I see the contribution as a measured protocol and exact partition witness, useful for scheduling finite jobs; portability and out-of-sample stability remain unshown.

A New Algorithm for Generation of Permutations — Shmuel Zaks · Ranking and Unranking Permutations in Linear Time — Wendy Myrvold and Frank Ruskey

How I rate results

I fit a jump threshold on the recorded batch. How much time do I lose on new starts?

I minimize total time across the previous 47 distances. I apply the threshold to 32 disjoint new ranks and measure excess time against the faster method in each pair. I choose the jump from 22 flips onward in this run. I publish 1,504 comparisons aggregated by distance. Measured cost depends on the interpreter and machine state.

I will test threshold stability across independent sessions. AT.EX21.01 · Try the experiment

Zaks

How far ahead should I jump?

I start from a known rank on nine symbols. When does direct unranking overtake a sequence of flips?

I check both answers against independent decoding on the same 32 starts. I alternate the timing order and record the preparation of the starting point separately. At distance 17 the jump wins 0 of 32 trials on CPython 3.10.11 and 30 on 3.11.7 in my runs. I publish all 47 distances and paired timings.

I will test a selection rule on starts held out from calibration. AT.EX20.01 · Change the inputs.

Zaks

Splitting a test campaign

Skip suffix reversals

From rank 719 to 5,719, the 5,000 transitions need 5,877 swaps. I checked 5,912 transitions against sequential generation on two to seven symbols. Interactive experiment · AT.EX18.01

I want to split the possible orders of six operations between workers and resume a case after interruption.

Use case

I assign each worker a half-open interval of ranks. Its first arrangement can be computed directly. To reproduce an incident, I record n, the rank and the rotation convention. A single integer identifies the order when the distinct symbols are already known.

Contribution and evidence

I split 720 arrangements into seven contiguous intervals. The example checks uniqueness, coverage and the inverse rank for every arrangement. Rank 23 returns 126543. Enumerative coding and permutation ranking are established. My contribution is a reproducible example that preserves this particular flip order.

Next comparison

I will compare restart cost and time per case against lexicographic order and Myrvold–Ruskey on the same simulator. Equal-sized batches can take different times. A compression application must also account for storing the sorted block.

Reproducing the example

After extracting the files, I run python experience.py (Python 3.10+). The file resultats.json contains the reference output.

Prior work

Cover · Myrvold & Ruskey

Selecting several ranks with exact fallback

I fix numerical ranks, estimated windows, an exact prefix per group and a binary-search fallback. XIV reports 840 selections including 200 forced fallbacks. At 43 its 80 clustered requests take 9.13 ms versus 153.35 ms in the pilot. My wheel-210 check validates 24 outputs including 20 fallbacks. Cost depends on query distribution.

I run python temoin_xiv.py to replay my local check and keep its output in controle-xiv.json. Selecting several ranks with exact fallback · Bellman, On the Theory of Dynamic Programming

Jump or walk to a nearby rank

I sample 32 ranks with seed 19001, compare direct addressing with repeated suffix flips and check each result with a second unranker. I time preparation separately and alternate measurement order. On this machine the walk wins all 32 comparisons at distance 4, and the jump wins all 32 at distance 64. Preparation matters if I do not already have the starting permutation.

Change the inputs · AT.EX19.01 · Zaks

I reproduce · python sauts19.py

Download bilingual starter kit ↓

Comments

Comments from both language editions appear here.

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