Stack-sorting for Words
Colin Defant, Noah Kravitz

TL;DR
This paper introduces two new stack-sorting operators for words, analyzes their properties, and connects sorting problems to pattern avoidance, providing combinatorial formulas and open questions.
Contribution
It generalizes stack-sorting operators to words, develops methods to count preimages, and relates sorting to pattern avoidance with new enumerative results.
Findings
The operator 'tortoise' sorts words faster than 'hare'.
Derived recurrence for sortable words with fixed letter multiplicities.
Counted pattern-avoiding words using Catalan numbers.
Abstract
We introduce operators and , which act on words as natural generalizations of West's stack-sorting map. We show that the heuristically slower algorithm can sort words arbitrarily faster than its counterpart . We then generalize the combinatorial objects known as valid hook configurations in order to find a method for computing the number of preimages of any word under these two operators. We relate the question of determining which words are sortable by and to more classical problems in pattern avoidance, and we derive a recurrence for the number of words with a fixed number of copies of each letter (permutations of a multiset) that are sortable by each map. In particular, we use generating trees to prove that the -uniform words on the alphabet that avoid the patterns…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
Topicssemigroups and automata theory · Algorithms and Data Compression · Advanced Combinatorial Mathematics
