Search arXivSearch

arXiv · 2609.05681

Stack Sorting on Words with Bounded-Repetition

Abstract

We consider the family of operators of stack sorting (s_m)_{m >= 1} acting on words according to the following rule: s_m(w) is the output produced by the usual West algorithm of stack sorting on the input word w, but allowing for at most m repetitions of the same letter stacked in succession. Our first main theorem gives an explicit formula for the action of the operator s_m on binary words w = a^p b a^q (with distinct letters a > b): s_m(a^p b a^q) = a^max(p-m,0) b a^min(p,m)+q, d_m(a^k b) = ceil(k/m). From the above formulas it follows that for every m < m' we have d_m(w) >= d_{m'}(w) for binary words w = a^k b, and moreover, the ratio d_m(w)/d_{m'}(w) is always possible to be chosen exactly m'/m, so the ratios d_m/d_{m'} are unbounded for this family on the specified class -- this is an explicit form of the expected separation-speedup phenomenon. Additionally, we provide explicit constructions of words of length 4 for which s_m and s_{m'} do not commute, and words of length 7 for which the speed d_m is not monotonic in m. Further, we provide a full recursive characterization -- generalizing the classical 231-avoidance result of Knuth and West -- of words which can be sorted using s_m only once, and then we employ it to show that there cannot exist an m-independent classical pattern avoidance condition for one-pass sortable words. Finally, we give a complete proof of the inequality d_1(w) >= d_m(w) >= d_infinity(w) for all m for two-letter words, together with a structural result establishing it for a single pass in general; nevertheless, we show that the family of operators (s_m) does not, after all, lie entirely between s_1 and s_infinity, exhibiting for every n >= 7 an explicit word w_n with d_1(w_n) = n-4 < n-3 = d_m(w_n) for every m >= 2, including m = infinity, so that the inequality above is false in general.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Fayzan Khan. 2026-09-04. Stack Sorting on Words with Bounded-Repetition. https://arxiv.org/abs/2609.05681

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Rooted Spider Embeddings and the Erd\H os-Sós Conjecture

Under a local density condition, we prove that every $k$-edge spider embeds at any prescribed center of degree at least $k$, unless all legs are even and the host graph has one of two specified structures. These structures contain complete bipartite subgraphs with prescribed neighborhoods. The proof uses path rerouting and three exchange lemmas that describe equality in neighborhood estimates. As a consequence, we recover the Erd\H os-Sós bound for all spiders.

math.CO

Generalized Goulden-Yong duals and signed minimal factorizations

In this paper, we give two combinatorial ways to study signed exceptional sequences. First, we show the equivalence between one-way reflections and relatively projective representations. Secondly, we construct generalized Goulden-Yong duals using reverse Garside element actions and folded chord diagrams. We then give two applications of the generalized Goulden-Yong duals: constructing generalized Prüfer codes and counting signed factorizations using the matrix-tree theorem.

math.CO

Explicit expressions for iterates of power series

We present several formulas for both the discrete and fractional iterates of an invertible power series $f$, using a new unifying approach based on umbral calculus. Known formulas are extended, and their proofs simplified, while new expressions are introduced. In particular, by employing $q$-calculus identities, we eliminate the requirement for $f'(0)$ to equal $1$ and the resulting general expressions for the iterative logarithm are obtained as well.

math.CO