Polynomial Time Enumeration of t-Stack-Sortable Permutations Ending in Their Least Entry
Pith reviewed 2026-05-10 15:37 UTC · model grok-4.3
The pith
Stack-sorting tableaux enable the first polynomial-time algorithm for counting t-stack-sortable permutations ending with their least entry.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
For each permutation π in S_n', the stack-sorting tableau T_π is introduced as a combinatorial object that accurately represents the action of the stack-sorting map s. This object is the foundation for a polynomial-time algorithm that counts the t-stack-sortable permutations within S_n'. Additionally, a precise relationship is established between the behavior of s on S_n' and on the standard set S_n of permutations.
What carries the argument
The stack-sorting tableau T_π, a new combinatorial object that models the stack-sorting process for permutations ending in their least entry, allowing structural analysis for counting purposes.
If this is right
- The number of t-stack-sortable permutations in S_n' can be determined in time polynomial in n.
- The action of the stack-sorting map s on S_n' can be related directly to its action on S_n.
- Enumeration problems for stack-sortable permutations gain an efficient method when restricted to those ending with their minimum entry.
Where Pith is reading between the lines
- This approach could potentially be adapted to count t-stack-sortable permutations without the ending restriction by building on the relationship to S_n.
- Similar tableau constructions might apply to other sorting maps or permutation classes in combinatorics.
- Polynomial-time counting may reveal asymptotic behaviors or generating functions for these objects.
Load-bearing premise
The stack-sorting tableau T_π must correctly encode the sequence of operations under the stack-sorting map so that its properties directly yield the count without exponential search.
What would settle it
A counterexample would be a specific permutation in S_n' where the tableau construction fails to match the actual number of applications of s needed to sort it, or where the proposed counting algorithm produces an incorrect total for small n that can be verified by brute force.
Figures
read the original abstract
We study the behavior of West's stack-sorting map $s$ on permutations whose last entry is also their least. Let $S_{n}':=\{\pi0\mid \pi\in S_n\}$ where $\pi0$ denotes the concatenation of $\pi$ and $0$. For each permutation $\pi\in S_n'$, we introduce a new combinatorial object known as the stack-sorting tableau $T_{\pi}$, which ultimately serves as the key ingredient in the first polynomial time algorithm for counting the number of $t$-stack-sortable permutations in $S_n'$. We then establish a precise relationship between the behavior of $s$ on $S_{n}'$ and on $S_{n}$.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper introduces the stack-sorting tableau T_π for permutations π in S_n' (those ending in their least entry 0), defined by an explicit insertion procedure recording the sequence of operations under West's stack-sorting map s. It gives a recursive decomposition of these tableaux indexed by the number of applications of s, derives a dynamic-programming recurrence whose state space is polynomial in n for each fixed t, and proves by induction on n a bijection between the t-stack-sortable elements of S_n' and certain restricted tableaux. The relationship between the action of s on S_n' and on S_n is used only to transfer the resulting counts.
Significance. If the claimed bijection and recurrence hold, the work supplies the first polynomial-time algorithm (for fixed t) to enumerate t-stack-sortable permutations ending in their minimal entry. The new tableau object and its inductive decomposition provide a concrete combinatorial tool for analyzing iterated stack-sorting, and the explicit transfer of counts from S_n strengthens the connection to the existing literature on stack-sortable permutations.
minor comments (3)
- The abstract states that the algorithm runs in polynomial time, but the introduction and complexity analysis should explicitly note that the degree of the polynomial depends on t (as is standard for fixed-t enumeration results) and give the precise dependence on t arising from the DP state space.
- Definition of the stack-sorting tableau T_π: an illustrative example showing the insertion procedure for a small permutation (e.g., n=4 or 5) would improve readability and help verify that the recording of stack operations matches the claimed recursive decomposition.
- In the inductive proof of the bijection, the base case n=1 (or the smallest n for each t) should be stated explicitly and checked before proceeding to the inductive step.
Simulated Author's Rebuttal
We thank the referee for their positive summary of the manuscript and for recommending minor revision. No major comments were raised.
Circularity Check
No significant circularity
full rationale
The manuscript defines the stack-sorting tableau T_π by an explicit insertion procedure that records stack operations on permutations ending in 0. It then proves a bijection to t-stack-sortable elements of S_n' by induction on n and supplies a dynamic-programming recurrence whose state space is polynomial in n for each fixed t. The relationship to the ordinary stack-sorting map s on S_n is invoked only to transfer the final count, not to establish the algorithm or the bijection. No equation or definition reduces to a prior fitted parameter, self-citation, or ansatz smuggled from the authors' own prior work; the central claims rest on independent combinatorial constructions and induction.
Axiom & Free-Parameter Ledger
invented entities (1)
-
stack-sorting tableau T_π
no independent evidence
Reference graph
Works this paper leans on
-
[1]
O. Chen, M. Luo, and J. Zhang. A disproof of two conjectures on stack-sorting maps for words. Annals of Combinatorics , 2025
work page 2025
-
[2]
C. Defant. Counting 3-stack-sortable permutations. Journal of Combinatorial Theory, Series A , 172, 2020
work page 2020
-
[3]
The on-line encyclopedia of integer sequences, 2026
OEIS Foundation Inc. The on-line encyclopedia of integer sequences, 2026. Sequence A001006
work page 2026
-
[4]
D. Knuth. The Art of Computer Programming, Vol. 1: Fundamental Algorithms . Addison-Wesley, 1968
work page 1968
-
[5]
J. West. Permutations with restricted subsequences and stack-sortable permutations. Ph.D. Thesis, 1990
work page 1990
-
[6]
D. Zeilberger. A proof of Julian West’s conjecture that the number of two-stack-sortable permutations of length n is 2(3n)!/((n + 1)!(2n + 1)!). Discrete Mathematics, 102:85–93, 1992. J. Zhang, South Pasadena High School, South Pasadena, CA, 91030 Email address : jerrylezhang@gmail.com
work page 1992
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.