Pinned Catalan completion for lexicographic ranking under multiple triple avoidance

How can a permutation be ranked or recovered in ordinary lexicographic order when several classical triples are forbidden? For every integer \(n\ge0\) and every \(B\subseteq S_3\) with \(|B|\ge2\), the paper gives inverse algorithms between the permutations \(\operatorname{Av}_n(B)\) avoiding every pattern in \(B\) and the integers \(0\le r<|\operatorname{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,\ldots,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 \(\ell\) starting at position \(i\) and value \(v\), pivot at position \(p=i+k\) and value \(v+\ell-1\). The children use positions \(i,\ldots,p-1\) and \(p+1,\ldots,i+\ell-1\), with respective value intervals \(v,\ldots,v+k-1\) and \(v+k,\ldots,v+\ell-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 \(\sigma\) of length \(a\) and right pattern \(\tau\) of length \(c\), append \(\tau+a\) to \(\sigma\), 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 \(\pi\) is \[\operatorname{rank}(\pi)=\sum_{j=1}^n\ \sum_{\substack{a<\pi_j\\a\in\{1,\ldots,n\}\setminus\{\pi_1,\ldots,\pi_{j-1}\}}} C(\pi_1,\ldots,\pi_{j-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\ge2\), 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\ge0\). 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\le r<|\operatorname{Av}_n(B)|\), where \(\operatorname{Av}_n(B)\) is the avoiding class.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-01
DOI
https://doi.org/10.5281/zenodo.24700714
Primary Topic
Advanced Combinatorial Mathematics
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Pinned Catalan completion for lexicographic ranking under multiple triple avoidance

Zixuan He
Zenodo (CERN European Organization for Nuclear Research)
Advanced Combinatorial Mathematics
preprint

Pinned Catalan completion for lexicographic ranking under multiple triple avoidance

Zixuan He
preprint en

Abstract

How can a permutation be ranked or recovered in ordinary lexicographic order when several classical triples are forbidden? For every integer \(n\ge0\) and every \(B\subseteq S_3\) with \(|B|\ge2\), the paper gives inverse algorithms between the permutations \(\operatorname{Av}_n(B)\) avoiding every pattern in \(B\) and the integers \(0\le r<|\operatorname{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,\ldots,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 \(\ell\) starting at position \(i\) and value \(v\), pivot at position \(p=i+k\) and value \(v+\ell-1\). The children use positions \(i,\ldots,p-1\) and \(p+1,\ldots,i+\ell-1\), with respective value intervals \(v,\ldots,v+k-1\) and \(v+k,\ldots,v+\ell-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 \(\sigma\) of length \(a\) and right pattern \(\tau\) of length \(c\), append \(\tau+a\) to \(\sigma\), 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 \(\pi\) is \[\operatorname{rank}(\pi)=\sum_{j=1}^n\ \sum_{\substack{a<\pi_j\\a\in\{1,\ldots,n\}\setminus\{\pi_1,\ldots,\pi_{j-1}\}}} C(\pi_1,\ldots,\pi_{j-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\ge2\), 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\ge0\). 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\le r<|\operatorname{Av}_n(B)|\), where \(\operatorname{Av}_n(B)\) is the avoiding class.

Zenodo (CERN European Organization for Nuclear Research)
University of Glasgow (GB)
Advanced Combinatorial Mathematics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon