Papers
Topics
Authors
Recent
Search
2000 character limit reached

Block-Restricted One-Swap Permutations

Updated 2 December 2025
  • The paper establishes the analytical tractability of block-restricted one-swap permutations, demonstrating exact finite-sample validity and variance reduction in both two-sample testing and combinatorial sorting.
  • Block-restricted one-swap permutations are defined by permissible cross-block swaps within designated representatives, ensuring a rigorously constrained action space for efficient computation.
  • The methodology leverages limited swap operations to yield tighter variance bounds and higher statistical power compared to full relabeling, enhancing both inference and sorting performance.

Block-restricted one-swap permutations are a highly structured class of permutations, relevant in both combinatorial sorting theory and the design of statistical permutation tests. The terminology spans two technical contexts: (1) structured test statistics in two-sample testing via block-restricted swaps between representatives, and (2) combinatorial characterization of permutations in the symmetric group that are sortable to the identity using exactly one prescribed block-interchange, as encoded by the context-directed swap (cds) operation. Both settings exhibit sharply restricted action spaces, admit exact analytical treatment, and find applications in statistical inference and permutation group theory.

1. Formal Definition of Block-Restricted One-Swap Permutations

In the statistical two-sample framework, suppose there are two groups A={X1,,Xn1}A = \{X_1, \ldots, X_{n_1}\} and B={Y1,,Yn2}B = \{Y_1, \ldots, Y_{n_2}\}, total N=n1+n2N = n_1 + n_2 items. The set {1,2,,N}\{1,2,\ldots,N\} is partitioned into bb disjoint blocks B1,,Bb\mathcal{B}_1, \ldots, \mathcal{B}_b via any label-invariant rule (e.g., quantiling on auxiliary covariates or kernel scores). A representative set R{1,,N}R \subset \{1, \ldots, N\} of size R=ρN|R| = \lfloor \rho N \rfloor, ρ(0,1]\rho \in (0,1], allocates quota per block. The permissible cross-swaps are

P={(i,j):iARBr,jBRBs,rs}.\mathcal{P} = \{ (i, j) : i \in A \cap R \cap \mathcal{B}_r,\, j \in B \cap R \cap \mathcal{B}_s,\, r \neq s \}.

A block-restricted one-swap permutation is any permutation obtainable from the identity via a single transposition in P\mathcal{P}. More generally, an LL-swap block-restricted path is a sequence of disjoint one-swap moves, with LR/2=ρN/2L \leq |R|/2 = \rho N / 2 (Ho, 29 Nov 2025).

In the combinatorial context, the cds sorting operation on Sn\mathfrak{S}_n acts by swapping two disjoint, specific blocks, determined by the occurrence pattern of pairs of “pointers” in the permutation’s pointer word. A permutation is block-restricted one-swap sortable if it requires exactly one cds operation to become the identity (Brown et al., 2020).

2. Algebraic and Combinatorial Structure

In the block-restricted two-sample setting, the set of admissible permutations forms a fixed subset SblockS_{\text{block}} of the symmetric group SNS_N, specified a priori by the blocks and representatives. These permutations are reachable via disjoint one-swap cross-block transpositions from the identity. This structure makes the analysis of test statistic increments and variance tractable, as the set structure is stable and independent of observed labels (Ho, 29 Nov 2025).

For cds one-swap-sortable permutations, there is an equivalent cycle-structure criterion: Define Xn=(012n)X_n = (0\,1\,2\,\ldots\,n), Yπ=(π(n)π(n1)π(1)0)Y_\pi = (\pi(n)\,\pi(n-1)\,\ldots\,\pi(1)\,0), and Cπ=YπXnC_\pi = Y_\pi \circ X_n. The permutation π\pi is cds one-swap-sortable if and only if CπC_\pi has a unique $4$-cycle (0nab)(0\,n\,a\,b) for some distinct a,b{1,,n1}a, b \in \{1,\ldots,n-1\} and all other cycles are fixed points. Equivalently, the strategic pile SP(π)\operatorname{SP}(\pi) has size two, and there is exactly one eligible pointer context (Brown et al., 2020).

3. Exact Validity and Increment Formulas in Statistical Testing

A principal advantage of block-restricted one-swap permutations in hypothesis testing is exact finite-sample validity. For any fixed (label-invariant) restricted set SSNS \subseteq S_N, drawing i.i.d. permutations uniformly from SS and forming the usual permutation pp-value yields type-I error control at all levels:

PH0{Pα}α,  α[0,1].\mathbb{P}_{H_0}\{P \leq \alpha\} \leq \alpha,\;\, \forall \alpha \in [0,1].

When S=SblockS = S_\text{block} (all block-restricted one-swap permutations), randomization inference remains exact in finite samples without recourse to subgroup symmetry or worst-case conditions (Ho, 29 Nov 2025).

The restricted action space of single swaps enables closed-form increment calculations for common test statistics:

  • Mean Difference: For h=1/n1+1/n2h = 1/n_1 + 1/n_2, swapping iAi \in A, jBj \in B, ΔΔ=h(ZjZi)\Delta' - \Delta = h(Z_j - Z_i). Conditional variance under random one-swap is h2Varw(ZJZI)h^2 \operatorname{Var}_w(Z_J - Z_I), contrasted with O(h)O(h) variability under full-relabeling permutation.
  • Unbiased MMD^2\widehat{\mathrm{MMD}}^2: The one-swap change is ψJBAψIAB\psi_J^{B \to A} - \psi_I^{A \to B}, and the conditional variance is the sum of within-class variances of the swap effectors.

The variance contraction (from O(h)O(h) to O(h2)O(h^2)) leads to tighter control of permutation quantiles and better Bernstein–Freedman tail proxies.

4. Power Enhancement and Critical Value Behavior

Under full relabeling, the null permutation distribution of the statistic TT admits Chebyshev or normal-approximation quantile bounds:

q1αfullE[T]+Varfull(T)/α.q_{1-\alpha}^{\mathrm{full}} \leq \mathbb{E}[T] + \sqrt{\operatorname{Var}_{\mathrm{full}}(T)/\alpha}.

The block-restricted scheme, by contrast, yields Bernstein–Freedman upper bounds:

q1αrestE[TSN]+2Lvlog(1/α),q_{1-\alpha}^{\mathrm{rest}} \leq \mathbb{E}[T\,|\,S_N] + 2\sqrt{L v_\ast \log(1/\alpha)},

with v=h2Varw(ZJZI)v_\ast = h^2 \operatorname{Var}_w(Z_J - Z_I) for the mean or τA2+τB2\tau_A^2+\tau_B^2 for MMD, L=ρN/2L = \rho N/2. Because h1h \ll 1, q1αrestq_{1-\alpha}^{\mathrm{rest}} is substantially below q1αfullq_{1-\alpha}^{\mathrm{full}} for the same α\alpha, for large nn. The result is higher statistical power under alternatives:

βrest(δ)1Φ(q1αrestδσalt),βfull(δ)1Φ(q1αfullδσalt).\beta^{\mathrm{rest}}(\delta) \approx 1 - \Phi\left(\frac{q_{1-\alpha}^{\mathrm{rest}} - \delta}{\sigma_{\mathrm{alt}}}\right),\quad \beta^{\mathrm{full}}(\delta) \approx 1 - \Phi\left(\frac{q_{1-\alpha}^{\mathrm{full}} - \delta}{\sigma_{\mathrm{alt}}}\right).

Pointwise, βrest(δ)βfull(δ)\beta^{\mathrm{rest}}(\delta) \geq \beta^{\mathrm{full}}(\delta) (Ho, 29 Nov 2025). Empirically, gains are maximized for balanced, large samples and block schemes that exploit high-contrast structures (e.g., kernel-score stratification).

5. Enumeration and Structure in Sn\mathfrak{S}_n

Within the cds framework, every one-swap-sortable permutation corresponds uniquely to an unordered pair {a,b}{1,,n1}\{a, b\} \subset \{1,\ldots,n-1\}, aba \neq b, and a choice of orientation for the 4-cycle. The total number is 2(n12)=(n1)(n2)2\binom{n-1}{2} = (n-1)(n-2). These permutations are extremely sparse, Θ(n2)\Theta(n^2) in total against n!n! overall. Detecting single-swap-sortability is O(n)O(n): compute the strategic pile and scan for pointer-interleaving (Brown et al., 2020).

Such permutations sit at the minimal nontrivial end of the cds complexity spectrum: the first nonzero member in the species-by-contexts partition Mn,kM_{n, k} at k=1k=1. They admit two equivalent block forms depending on the context’s order in the pointer word, e.g.,

[  y+1,y+2,,n;    1,2,,x;    x+1,,y  ][\; y+1, y+2, \dots, n;\;\; 1, 2, \dots, x;\;\; x+1, \dots, y\; ]

for pointer pairs (x,x+1),(y,y+1)(x,x+1), (y, y+1) with 1x<yn11 \leq x < y \leq n-1.

6. Relationship to Broader Permutation and Testing Theory

Block-restricted one-swap permutations provide a test-bed for studying the trade-off between label-exchange symmetry and power in permutation tests. Their a priori definition ensures exact validity and sharp variance behavior, exploiting fixed group structure rather than average- or worst-case coverage.

In the cds sorting paradigm, block-restricted one-swap permutations characterize the boundary of “minimal non-sortability”—the fewest possible eligible pointer contexts and smallest possible strategic pile size (2) to require any block-interchange operation. This positions them as a combinatorial extreme, with implications for sorting complexity and group action enumeration.

These frameworks, found in "Restricted Block Permutation for Two-Sample Testing" (Ho, 29 Nov 2025) and "Classifying Permutations under Context-Directed Swaps and the cds game" (Brown et al., 2020), exemplify structured, low-complexity randomization mechanisms enabling rigorous finite-sample statistical guarantees and rich algebraic properties.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Block-Restricted One-Swap Permutations.