Generating key points…
Answers are grounded in this paper and cite their sources.
How can a permutation be ranked or recovered in ordinary lexicographic order when several classical triples are forbidden? For every integer \(n≥0\) and every \(B⊆ S_3\) with \(|B|≥2\), the paper gives inverse algorithms between the permutations \(Av_n(B)\) avoiding every pattern in \(B\) and the integers \(0≤ r<|Av_n(B)|\). The algorithms count the completions of original prefixes. Ranking adds the sizes of earlier prefix blocks, and unranking subtracts those sizes until it finds the block containing the requested rank. The completion count accepts pins \((x,y)\) prescribing value \(y\) at position \(x\), with distinct positions and distinct values in \(\{1,…,n\}\). This lets reversal, complementation or their composition carry a forbidden nonmonotone triple to \(231\), even when a prefix becomes a suffix. Once \(231\) is forbidden, every value left of the maximum is below every value right of it. Choosing the maximum's position therefore fixes both child position intervals and both child value intervals. In a rectangle of equal-length intervals, any pin with exactly one coordinate in the corresponding interval invalidates that state. Pins inside must be realized. For a rectangle of length \(\) starting at position \(i\) and value \(v\), pivot at position \(p=i+k\) and value \(v+-1\). The children use positions \(i,…,p-1\) and \(p+1,…,i+-1\), with respective value intervals \(v,…,v+k-1\) and \(v+k,…,v+-2\). Reject mismatched pins at the pivot and at either child. A child's profile contains the standardized subsequences of length at most three, including the empty one. To join profiles, for each left pattern \(σ\) of length \(a\) and right pattern \(τ\) of length \(c\), append \(τ+a\) to \(σ\), optionally inserting \(a+c+1\) between them. Keep only total lengths at most three. If the joined profile contains no transformed forbidden pattern, add the product of the child counts to that parent profile. For a prefix \(w\) let \(C(w)\) be the completion count on the whole rectangle. The zero-based rank of \(π\) is \[rank(π)=∑ⱼ₌₁^n\ ∑_{{a<π_j\∈\{1,…,n\}\{π_1,…,πⱼ₋₁\}}} C(π_1,…,πⱼ₋₁,a). \] All decisions about lexicographic order use the original prefixes. The remaining forbidden set \(\{123,321\}\) has no avoiders beyond length four and is handled by finite enumeration. For \(n≥2\), either algorithm uses \(O(n^6)\) arithmetic operations and \(O(n^3)\) stored integers. Conservative schoolbook bounds are \(O(n^8)\) bit work and \(O(n^4)\) bits of storage. **Original problems** - Hassler and Vajnovszki, §4, first open problem. For permutations of any length avoiding a set of at least two distinct classical patterns of length three, how can one compute the zero-based rank in ordinary lexicographic order and recover the permutation from a valid rank? The paper solves both tasks for every such forbidden set and every \(n≥0\). A completion count with prescribed position–value pairs supplies the sizes of the original lexicographic prefix blocks. Unranking is defined exactly for the integers \(0≤ r<|Av_n(B)|\), where \(Av_n(B)\) is the avoiding class.
No takes yet. Share an insight, caveat, or question.
Zixuan He (2026) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: