Atelier des rouesLab FR
Register/AT.EX21.01
Controlled experiment · AT.EX21.01

Testing a jump rule on held-out ranks

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

I fit a cutoff of 22 reversals on the earlier distance results, then apply it to 32 disjoint starting ranks in the same CPython version, reporting regret against the faster measured method for each pair. Unlike Zaks’s generation and unranking results, this is a small holdout evaluation of an implementation heuristic. Its distance-level aggregates are reusable, but one machine and runtime do not show that the cutoff transfers; I would test new sessions and larger n.

Shmuel Zaks, “A New Algorithm for Generation of Permutations,” BIT 24, 196–204 · Arthur Crapé and Lieven Eeckhout, “A Rigorous Benchmarking and Performance Analysis Methodology for Python Workloads,” IISWC

How I rate results

Assumptions

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.

Result

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.

Prior work

Zaks

Next question

I will test threshold stability across independent sessions.

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.