Computational Approach to the SC₂₃₁ Consecutive-Pattern-Avoiding Stack Sort
Pith reviewed 2026-05-10 07:21 UTC · model grok-4.3
The pith
Computations up to length 14 and proven bounds show SC_231 sort-numbers grow faster than linearly in tested ranges.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
Through exhaustive enumeration, the SC_231 map produces sort-numbers whose maximum and average both exceed linear growth for n up to 14 and n up to 1000 respectively; the paper proves the maximum sort-number of any length-n permutation is bounded below by n-1 and above by (n+1)(n-2)/2.
What carries the argument
The SC_231 map, the stack-sorting procedure in which the stack is required to avoid the consecutive pattern 231 after every push or pop.
If this is right
- The maximum sort-number lies between n-1 and (n+1)(n-2)/2 for every n.
- Average sort-numbers appear to grow faster than linear at least up to length 1000.
- Long-term asymptotic behavior of the maximum and average remains undetermined by the given data.
- Earlier conjectures on the growth rate are refined by the combination of computation and the explicit bounds.
Where Pith is reading between the lines
- The quadratic upper bound implies that the 231-avoidance constraint does not reduce worst-case sorting cost below quadratic order.
- Repeating the enumeration for n=15 or 16 would provide a direct test of whether the superlinear trend continues.
- The same computational strategy could be applied to the other consecutive patterns SC_132 and SC_123 to compare their growth rates.
- The observed gap between the linear lower bound and quadratic upper bound leaves room for a tighter asymptotic analysis.
Load-bearing premise
The program that enumerates and sorts every permutation of length 14 applies the SC_231 rule correctly and without omissions or implementation mistakes.
What would settle it
A verified computation of the maximum sort-number for some permutation of length 15 that lies outside the interval [14, 104] would contradict the proven bounds, while an average that remains strictly linear through n=100 would undermine the observed superlinear trend.
Figures
read the original abstract
Defant and Zheng introduced a consecutive-pattern-avoiding stack sort map $SC_{\sigma}$, where the stack must avoid a consecutive pattern $\sigma$. Seidel and Sun disproved a conjecture in Defant and Zheng's paper about the maximum sort-number of a length $n$ permutation under $SC_{231}$. In this paper, we compute sort-numbers for each permutation of length up to $14$, and we estimate the average sort-numbers up to length $1000$. Our results suggest the maximum and average sort-numbers grow faster than linear with respect to $n$ for the tested ranges, though the long-term behavior remains unclear. We also prove properties of $SC_{231}$ mathematically, such as a $n-1$ lower bound and a $\frac{(n+1)(n-2)}{2}$ upper bound for the maximum sort-number of length $n$ permutations.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper computationally enumerates the sort-numbers under the SC_231 consecutive-pattern-avoiding stack sort for all permutations of length at most 14 and estimates average sort-numbers up to length 1000. It also proves a lower bound of n-1 and an upper bound of (n+1)(n-2)/2 on the maximum sort-number for permutations of length n. The authors suggest, based on the data, that both the maximum and average sort-numbers grow faster than linearly with n over the tested ranges, while noting that the long-term asymptotic behavior is unclear.
Significance. The two explicit mathematical bounds are rigorous and independent of the computations, supplying concrete constraints on the complexity of this sorting map. The enumeration and estimates supply new empirical data that can guide future work on the growth rate of sort-numbers under consecutive-pattern-avoiding stack sorts, particularly in light of the earlier conjecture disproved by Seidel and Sun.
major comments (2)
- [Computational results section] Computational results section: the suggestion that maximum and average sort-numbers grow faster than linearly rests on exhaustive enumeration up to n=14 together with estimates to n=1000. Because 14! exceeds 8.7×10^10, the enumeration cannot be brute-force; the manuscript must therefore describe the algorithm, data structures, and verification steps used to compute the SC_231 map and tally iteration counts. Without these details the observed trend cannot be independently confirmed.
- [Growth-rate discussion] Growth-rate discussion: the upper bound (n+1)(n-2)/2 is quadratic while the lower bound is linear, so the data are consistent with any superlinear rate up to quadratic. The manuscript correctly qualifies the claim as holding only for the tested ranges, but the absence of either an asymptotic proof or a statistical model fitted to the n=14 data leaves the central empirical suggestion dependent on the correctness of the small-n implementation.
minor comments (2)
- [Abstract] The abstract states that sort-numbers are computed 'for each permutation of length up to 14'; it would be clearer to add 'all' to emphasize exhaustiveness.
- [Computational results section] The notation SC_231 is introduced in the abstract but should be recalled with a one-sentence definition when the computational results are first presented.
Simulated Author's Rebuttal
We thank the referee for the careful and constructive report. We address each major comment below and will revise the manuscript to improve clarity and reproducibility.
read point-by-point responses
-
Referee: [Computational results section] Computational results section: the suggestion that maximum and average sort-numbers grow faster than linearly rests on exhaustive enumeration up to n=14 together with estimates to n=1000. Because 14! exceeds 8.7×10^10, the enumeration cannot be brute-force; the manuscript must therefore describe the algorithm, data structures, and verification steps used to compute the SC_231 map and tally iteration counts. Without these details the observed trend cannot be independently confirmed.
Authors: We agree that a detailed description of the computational methods is required for independent verification. In the revised manuscript we will expand the Computational Results section with a dedicated subsection that describes the recursive algorithm for applying the SC_231 map, the data structures (including memoization tables and permutation representations) used to avoid brute-force enumeration, and the verification procedures (consistency checks against smaller n, cross-validation with the proven bounds, and sample manual checks). revision: yes
-
Referee: [Growth-rate discussion] Growth-rate discussion: the upper bound (n+1)(n-2)/2 is quadratic while the lower bound is linear, so the data are consistent with any superlinear rate up to quadratic. The manuscript correctly qualifies the claim as holding only for the tested ranges, but the absence of either an asymptotic proof or a statistical model fitted to the n=14 data leaves the central empirical suggestion dependent on the correctness of the small-n implementation.
Authors: We acknowledge that the linear-to-quadratic bounds permit a range of superlinear behaviors and that our empirical suggestion rests on the computed data. In revision we will strengthen the growth-rate discussion by explicitly noting the absence of an asymptotic proof or fitted statistical model, reiterating the dependence on implementation correctness, and adding a forward-looking remark that theoretical analysis of the long-term growth rate remains an open direction. revision: partial
Circularity Check
No significant circularity; derivations are independent enumerations and combinatorial proofs
full rationale
The paper computes sort-numbers via exhaustive enumeration of all permutations of length <=14 and provides separate estimates for averages up to n=1000; these are direct applications of the SC_231 map definition rather than fitted parameters renamed as predictions. The n-1 lower bound and (n+1)(n-2)/2 upper bound on maximum sort-number are proved mathematically from combinatorial arguments on the stack-avoidance rules, without reference to the computational data or self-citations. No steps reduce by construction to prior inputs, self-definitions, or author-overlapping citations that bear the central load. The suggestion of superlinear growth is an observation from the enumerated values, not a claim that loops back to the inputs.
Axiom & Free-Parameter Ledger
axioms (1)
- standard math Permutations are bijective sequences from 1 to n; consecutive pattern avoidance and stack operations follow the standard definitions in the literature.
Reference graph
Works this paper leans on
-
[1]
The Art of Computer Programming, Volume 1: Fundamental Algorithms
Knuth, Donald E. The Art of Computer Programming, Volume 1: Fundamental Algorithms. Addison-Wesley, 1973
work page 1973
-
[2]
Permutations with restricted subsequences and stack-sortable permutations
West, J. Permutations with restricted subsequences and stack-sortable permutations. Ph.D. Thesis, MIT, 1990. 10
work page 1990
-
[3]
Stack Sorting with Restricted Stacks
Cerbai, Giulio, et al. “Stack Sorting with Restricted Stacks.”Journal of Combinatorial Theory Series A, vol. 173, July 2020, https://doi.org/10.1016/j.jcta.2020.105230
-
[4]
Stack-Sorting with Consecutive-Pattern- Avoiding Stacks
Defant, Colin, and Kai Zheng. “Stack-Sorting with Consecutive-Pattern- Avoiding Stacks.”Advances in Applied Mathematics, vol. 128, 18 Mar. 2021, https://doi.org/10.1016/j.aam.2021.102192. Accessed 24 June 2025
-
[5]
Periodic Points of Consecutive-Pattern-Avoiding Stack-Sorting Maps
Seidel, Ilaria, and Nathan Sun. “Periodic Points of Consecutive-Pattern-Avoiding Stack-Sorting Maps.”2308.05868, arXiv, Aug. 2023, arxiv.org/pdf/2308.05868. Accessed 28 June 2025
-
[6]
Stack-Sorting with Stacks Avoiding Vincular Patterns
Zhao, William. “Stack-Sorting with Stacks Avoiding Vincular Patterns.” ArXiv.org, 2024, arxiv.org/abs/2410.17057. Accessed 30 Mar. 2026
-
[7]
Fertility Numbers of Consecutive S3 Pattern-Avoiding Stack-Sorting Maps
Kemeklis, Jurgis. “Fertility Numbers of Consecutive S3 Pattern-Avoiding Stack-Sorting Maps.” ArXiv.org, 15 Sept. 2024, arxiv.org/abs/2408.05378. Accessed 2 Apr. 2026
-
[8]
Shuffle a given Array Using Fisher–Yates Shuffle Algorithm
GeeksforGeeks. “Shuffle a given Array Using Fisher–Yates Shuffle Algorithm.” Geeks- forGeeks, 10 Oct. 2012, www.geeksforgeeks.org/dsa/shuffle-a-given-array-using-fisher-yates- shuffle-algorithm/
work page 2012
-
[9]
Yi, Kai. “Sc231 Stats v2.” Desmos, 17 Apr. 2026, https://www.desmos.com/calculator/gamyae9s0y. Accessed 17 Apr. 2026
work page 2026
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.