Indexed metadata

Stack Sorting on Words with Bounded-Repetition

Fayzan Khan

Source record

Source: arXiv

Published: Sep 4, 2026

arXiv: 2609.05681

Open original source ↗

Source 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 = 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 = 2, including m = infinity, so that the inequality above is false in general.

Evidence graph

No public relationships recorded yet.

Integrity note: This page is a factual metadata record created by deterministic ingestion. It is not a claim that the work moves a mathematical frontier or has been independently verified.

Stack Sorting on Words with Bounded-Repetition — Mathematical Frontier Network