arXiv Science⌕ Search

arXiv · 2610.37940

Enumeration Complexity of Permutation Classes

Abstract

We study classes of permutations that are defined by avoidance of forbidden patterns. For each fixed finite set $B$ of forbidden patterns, we study the \emph{avoider enumeration problem}: given an integer $n$, output all $B$-avoiding permutations of length $n$. Avoider enumeration is output-polynomial for every fixed $B$. However, our main notion of efficiency is polynomial delay. We use the insert-maximum tree as a search tree, in which permutations are built by repeatedly inserting a new maximum while preserving pattern avoidance. This leads to the \emph{insert-maximum extension problem}, which asks if a given permutation has an avoiding descendant at a specified depth. An algorithm for this problem can prune branches that cannot reach the target length. Hence, if this problem is in P, we obtain polynomial-delay enumeration. To investigate this problem, we introduce and study \emph{pockets}, the maximal finite subtrees of the insert-maximum tree. For fixed $B$, if there is a polynomial $p$ such that every pocket rooted at $ρ$ has at most $p(|ρ|)$ nodes, then the extension problem is solvable in polynomial time and enumeration has polynomial delay. In particular, a bound on pocket depth depending only on $B$ suffices. We prove such a bound if the class is well-quasi-ordered, has a regular insertion encoding, or if $B$ omits one of the three maximum-position types: leftmost, interior, or rightmost. We also prove that extension is in NP for every fixed $B$, even with binary-encoded target depth. On the negative side, we construct a fixed set of $55$ forbidden patterns for which extension is NP-complete. Consequently, enumerating valid extensions from a given starting permutation cannot have polynomial delay unless P=NP. This also answers a question of Hanika by showing that the forbidden permutation constraint satisfaction problem can be NP-complete for a fixed forbidden set.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Manuel Bodirsky, Mohamed Elsheikh. 2026-10-27. Enumeration Complexity of Permutation Classes. https://arxiv.science/abs/2610.37940

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Polynomial-Time Mistake-Bounded Language Generation

In this paper, we introduce a polynomial-time version of the mistake-bounded language generation (MBLG) framework due to Kleinberg, Peale, and Reingold (2026). We obtain upper and lower bounds for several simple families of Boolean functions in our setting. Namely, we first observe that families of parities of variables, symmetric functions, and 2CNFs are polynomial-time MBLG. We then show that the family of monotone functions with polynomially many maxterms is polynomial-time MBLG. For instance, disjunctions of literals are monotone Boolean functions with 1 maxterm, and thus polynomial-time MBLG. Under the existence of one-way functions, we show that disjunctions of literals are not polynomial-time MBLG. From the latter result, we deduce that polynomial-time MBLG families are not closed under union, and that there are families that are polynomial-time PAC learnable but not polynomial-time MBLG (again, under the existence of one-way functions). Finally, assuming the existence of injective one-way functions, we show that there are polynomial-time MBLG families that are not polynomial-time PAC learnable.

cs.CC↗

Average-Case Shellsort: Pass-Comparison Tradeoffs and Deterministic Construction

We study ordinary Shellsort with an input-independent decreasing gap table, charging all key comparisons. Let $A_p(n)$ be its minimum uniform-permutation mean among tables of at most $p$ passes. We construct an explicitly sampleable distribution showing, for an absolute constant $C$ and all $n\ge2$, $p\ge1$, \[ A_p(n)\le Cnp \bigl(n^3\lceil\log_2(2n)\rceil\bigr)^{1/(p+3/2)}. \] The construction combines prime gaps that reduce uncertainty on the original random input with a coprime suffix valid for each entrance state. A second-moment interface joins the phases without resampling their intermediate chains. A Frobenius bound pays the final insertion pass. In particular, at $p=\lfloor c\log n\rfloor$ the limiting mean coefficient is $O(ce^{3/c})$ for $0<c\le1$, compared with the classical $Ω(ce^{1/c})$ lower bound. We also give a pointwise randomized-table bound $2^{58}np\,n^{4/(p+1/2)}$ for every fixed input. Separately, we approximate the complete mean of any legal table to additive error one deterministically in $\exp(n^{2/3+o(1)})$ time and polynomial space. The reduction uses coupled Boolean evaluations and the comparator-circuit pseudorandom generator of Cavalar and Lu. Enumerating our support then deterministically selects a table meeting the mean upper bound, up to additive two, when $p=O(\log n)$. Our companion manuscript independently establishes unrestricted average order $Θ(n\log n)$ and a subexponential deterministic construction; Du and Wan independently obtain the same optimal average order. The results here refine the pass-dependent bounds and improve the deterministic preprocessing guarantee. They do not determine the optimal general exponent or give a polynomial-time deterministic construction.

cs.CC↗

Feasible Proofs of the Lovász Local Lemma

We study feasible proofs of the Lovász Local Lemma (LLL) in the framework of Bounded Arithmetic. Our main result resolves an open problem of Lê by formalising the Moser-Tardos theorem in the theory $\mathsf{APC}_1$, under the standard LLL condition, for instances in which the conditional probabilities of the bad events can be computed efficiently, such as those arising from $k$-CNF formulas. For such instances, our proof moreover yields a deterministic polynomial-time many-one reduction of the LLL good-assignment search problem to a single instance of $\mathsf{LossyCode}$. For bad events given only by their indicator circuits, we formalise the general Moser-Tardos theorem in $\mathsf{APC}_2$, using Jeřábek's approximate counting by hashing. We also formalise several variants of the LLL under stronger hypotheses or in more restricted settings within weaker theories. In $\mathsf{PV}_1$, we formalise the Chandrasekaran-Goyal-Haeupler algorithm under constant exponent slack, as well as the deterministic Moser-Tardos construction for fixed dependency degree and fixed multiplicative slack. In $\mathsf{VNC}^2$, we formalise the Haeupler-Harris parallel construction with a single maximal-independent-set computation in the symmetric atomic-event setting. Together, these results give a proof-theoretic comparison of randomised, deterministic, and parallel forms of the LLL, and show how slack and algorithmic structure affect the strength of the theory needed to prove them.

cs.CC↗