Atelier des rouesLab FR
Register/AT.EX19.01
Verified experiment · AT.EX19.01

Jump or walk to a nearby rank

1/4 Educational or exploratory value AI-assisted literature assessment · one reading

I report a narrow crossover observation: for 32 seeded nine-symbol starting ranks, local stepping wins at gap 4 and direct unranking wins at gap 64, with setup timed separately. Zaks already supplies the transition and rank-based methods; my fragment compares their implementations at two distances. That may guide a local dispatch rule, but it does not establish a threshold. I would repeat across independent sessions, input sizes, and runtimes.

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 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.

Result

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.

Prior work

Zaks

Next question

Test distances 17–63 on a second interpreter.

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.