The maximum number of two-window permutation packings
The maximum number of two-window permutation packings Fix integers \(K\ge 2m\ge2\). In a permutation of length \(2K-m\), require the two length-\(K\) windows starting at \(1\) and \(K-m+1\) to have the same prescribed pattern \(\pi\). Additional occurrences are permitted. Blitvić, Kammoun and Steingrímsson ask for the maximum of this packing count in §7, item 4, immediately before Conjecture 7.1. Their question allows more than two windows. For the two-window range \(K\ge2m\), the exact recurrence below gives the maximum \(M(K,m)\) and recovers an attaining pattern for every parameter pair. Original question, §7, item 4 Counting any compatible pattern The prefix and suffix of length \(m\) must have the same relative order. Let \(p_1<\cdots<p_m\) and \(s_1<\cdots<s_m\) be their sorted sets of values in \(\pi\), viewed as ranks in \(\{1,\ldots,K\}\). Set \(p_0=s_0=0\) and \(p_{m+1}=s_{m+1}=K+1\), and define \(x_i=p_{i+1}-p_i-1\) and \(y_i=s_{i+1}-s_i-1\) for \(0\le i\le m\). With \(B(x,y)=\binom{x+y}{x}\), the number of host permutations is \[N_\pi^m(2)=\prod_{i=0}^m B(x_i,y_i).\] Part I, Theorem 5.3, identifies the count for a fixed pattern with the number of linear extensions of its poset. The displayed product is the two-window specialization of this count, using the shared-chain argument from the proof of Theorem 5.23. Each window orders its positions into a chain. The \(m\) shared positions divide the chains into gaps, and each factor counts the interleavings of the two chains within one gap. Part I The formula uses arbitrary compatible prefix and suffix orders. For maximization, replacing each pair \((p_i,s_i)\) by its minimum and maximum preserves disjointness and can only increase the product. This gives a search over \(p_i<s_i\) without changing the maximum. Computing the maximum and recovering a pattern Write \(N=K-m\) and \(\ell=K-2m\). For the exact recurrence start at \((i,p,s,R,e)=(0,0,0,\varnothing,\ell)\). After \(i\) pairs, \(p,s\) are the current ranks, \(R\) contains all selected suffix ranks strictly greater than \(p\), including \(s\) once a pair has been selected, and \(e\) is the remaining allowance of ranks common to the two gap intervals at the same index. Choose \(p<p'<s'\le K\) with \(s'>s\) and \(p'\notin R\). Set \(e'=e-\max(p'-s-1,0)\) and keep the step if \(e'\ge0\). Its factor is \(B(p'-p-1,s'-s-1)\), and its new exclusion set is \((R\cap\{p'+1,\ldots,K\})\cup\{s'\}\). After \(m\) pairs, accept a complete path only if \(K-s\le e\). An accepted path receives the terminal factor \(B(K-p,K-s)\). Maximize over accepted paths. To reconstruct an attaining pattern, list the winning prefix ranks in increasing order, then the ranks of \([K]\) outside the union of the winning prefix and suffix sets in increasing order, then the winning suffix ranks in increasing order. The general recurrence can have exponentially many states. Two polynomial recurrences can determine the maximum without the exact search when their bounds coincide. For an upper bound, let \(b\) be the remaining sum of the suffix gaps, \(d\) the current suffix-minus-prefix rank difference, and \(e\) the remaining common-rank allowance. Set \(U(0,d,e)=1\) and, for \(b>0\), maximize \(B(x+c,y+c)U(b-y-c,d-x+y,e-c)\) over nonnegative integers with \(x\le d\), \(c\le e\), \(y+c\le b\), and \(x+y+c>0\). Then \(M(K,m)\le U(N,0,\ell)\). For a lower bound, choose a composition \(a_1+\cdots+a_t=m\) into positive parts. In rank order write blocks \(P^{a_i}S^{a_i}\), where \(P\) marks a prefix rank and \(S\) marks a suffix rank. Insert \(c_i\ge0\) unassigned ranks at boundary \(i\), including both ends, with \(\sum_{i=0}^t c_i=\ell\). The count of this pattern is \[\prod_{i=0}^t B(a_i+c_i,a_{i+1}+c_i),\qquad a_0=a_{t+1}=0.\] The best such product is \(L(m,0,\ell)\). With \(b\) the amount still to partition, \(d\) the preceding part, and \(e\) the unassigned ranks left, use \(L(0,d,e)=B(d+e,e)\) and maximize \(B(d+c,y+c)L(b-y,y,e-c)\) over \(1\le y\le b\) and \(0\le c\le e\) for \(b>0\). Equality of \(L\) and \(U\) certifies optimality. At \((K,m)=(8,4)\) both give \(9\), completing the upper bound for the published witness of count \(9\). At \((9,4)\) both give \(30\), attained by \(134872569\). The known one-position-overlap maximum is \(M(K,1)=\binom{2K-3}{K-2}\) for \(K\ge2\). Published comparison at \((8,4)\) · Part I, Corollary 4.3 · Elizalde, equation (18) Uniform size of the maximum There are absolute constants \(a,b>0\) such that throughout \(K\ge2m\ge2\), \[aT\le\log\frac{4^N}{M(K,m)}\le bT,\qquad T=\log(N+1)+\left(\frac{m^2\log^2(m+1)}{N}\right)^{1/3}.\] All logarithms are natural. Elizalde's two-cluster upper bound on \(M(K,m)\) gives \(\log(4^N/M(K,m))\ge\log(4^N/\binom{2N-1}{N-1})\). The right-hand side is of order \(\log(N+1)\). The manuscript's two-sided theorem gives the sharp uniform order \(T\). The additional scale comes from the cost of changing the rank difference across gaps and the cost of having many nonempty gaps. If \(H=\max_i(s_i-p_i)\) in normalized ranks, those costs are bounded below by \(H^2/(2N)\) and \(m\log(1+2H)/H\), respectively, before the absolute factor in the binomial loss bound. The block patterns attain the resulting scale, using a rounded squared triangular profile for \(\ell<m\) and nearly equal parts with the unassigned ranks at the ends for \(\ell\ge m\). At \(K=2m\) the logarithmic loss is of order \(m^{1/3}\log^{2/3}(m+1)\). Elizalde, Lemma 2.9
Authors
- Zixuan He
Institutions
- University of Glasgow (GB)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24799231
- Primary Topic
- Advanced Combinatorial Mathematics
- Type
- preprint