How far ahead should I jump?
I provide a bounded timing artifact across 47 gaps and 32 starts: at gap 17, direct access wins 0/32 trials in CPython 3.10.11 but 30/32 in 3.11.7. Zaks gives the underlying rank and transition operations; Crapé and Eeckhout show why Python timing conclusions need controlled, statistically analyzed workloads. This result usefully flags runtime sensitivity, but needs repeated independent sessions and uncertainty analysis before it can support a dispatch rule.
Shmuel Zaks, “A New Algorithm for Generation of Permutations,” BIT 24 (1984), 196–204 · Arthur Crapé and Lieven Eeckhout, “A Rigorous Benchmarking and Performance Analysis Methodology for Python Workloads,” IISWC 2020
How I rate resultsI start from a known rank on nine symbols. When does direct unranking overtake a sequence of flips?
- CPython
- 3.10.11
- Faster jumps
- 0/32