Spending a flip budget
I relabel distinct symbols so that the starting permutation is the identity. A strip in the target is a maximal run of increasing or decreasing consecutive values. A suffix reversal preserves the unordered adjacencies inside the suffix and can break only one join. A target with t strips therefore requires at least t−1 flips.
If t−1 ≤ L, I shorten each strip to at most L−t+3 representatives and relabel. The reduced instance has at most t(L−t+3) ≤ ⌊(L+3)²/4⌋ symbols. Projecting a path onto the retained symbols gives a reduced path. To lift a short path, the residual budget leaves an adjacent pair in each shortened strip unbroken along the path. I can reinsert the removed symbols there with their orientation restored. The starter kit checks small instances against exact distances.
For the lifting step I count all initially adjacent pairs that were ever cut on the reduced path. There are at most L. The t−1 adjacencies absent from the target already consume t−1 of these. At most L−t+1 internal pairs across all strips could therefore have been cut. Each shortened strip contains L−t+2 adjacent pairs, leaving a protected pair. I expand one such pair in its current orientation and relabel in value order. Every flip lifts without an extra move.
How a simpler reduction fails
The target (3,2,1,5,4) has exact distance 4. Keeping only two symbols per strip gives (2,1,4,3), at distance 3. This witness preserves a useful regression test. Signed permutations have a separate orientation rule.
Bulteau, Fertin and Rusu proved that optimal prefix-reversal sorting is NP-hard. Reversing the representation exchanges prefixes and suffixes. My candidate contribution is the explicit budget-dependent reduction and its failure witness. Before pursuing publication I need to compare its precise model and bound with earlier block reductions. Bulteau, Fertin and Rusu · Solver starter kit
Counting the first boundary
I place a fixed sentinel before the first position. If the first value has changed, one further initial adjacency must be broken. In XII this improves the quadratic kernel bound in that case. The supplied run reports 3,557 strictly smaller kernels at optimal budget. Time and node counts for search with actual path reconstruction remain to be measured. Finding and limits · Helmert on gap heuristics
Reproduce the experiment
In VII/src, run python kernels_audit.py. It compares the reduced instances with exact breadth-first distances.
Download research files ↓