Saved in:
Bibliographic Details
Main Authors: Buick, Samuel, Goertz, Madeleine, Lastmann, Amos, Pal, Kunal, Qian, Helen, Tacheny, Sam, Williams, Aaron, Williams, Leah, Zhai, Yulin
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2508.16039
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916911978119168
author Buick, Samuel
Goertz, Madeleine
Lastmann, Amos
Pal, Kunal
Qian, Helen
Tacheny, Sam
Williams, Aaron
Williams, Leah
Zhai, Yulin
author_facet Buick, Samuel
Goertz, Madeleine
Lastmann, Amos
Pal, Kunal
Qian, Helen
Tacheny, Sam
Williams, Aaron
Williams, Leah
Zhai, Yulin
contents The most well-known Gray code of permutations is plain changes. It was discovered in the 1600s by bell-ringers who wished to order the permutations of [n] by swaps (e.g., 123, 132, 312, 321, 231, 213 for n = 3). In other words, plain changes traces a Hamilton path in the permutohedron. In 2013 it was shown that plain changes can be generated by a greedy algorithm: swap the largest value. Algorithm J replaces the swap operation with the jump operation (which moves a larger digit past one or more smaller digits) and forms the basis of the wildly successful Combinatorial Generation via Permutation Languages series of papers. Here we further generalize this line of research to languages of s-words (i.e., multiset permutations). We generalize jumps to bumps, which moves a sequential run of the same larger digit past one or more smaller digits. Algorithm B greedily applies minimum-length bumps prioritized by largest value, then largest index, then rightward before leftward (e.g. 1122, 1221, 1212, 2112, 2121, 2211 for s = (2, 2)). We show that the algorithm works for s-word languages avoiding a wide variety of tame patterns. Specific applications include efficient algorithm for generating s-Stirling words (which avoid 121) and new Gray codes for various s-Catalan objects (which avoid 132 and 121). The former result leads to Hamilton paths in every s-permutahedron.
format Preprint
id arxiv_https___arxiv_org_abs_2508_16039
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Exhaustive Generation of Pattern-Avoiding s-Words
Buick, Samuel
Goertz, Madeleine
Lastmann, Amos
Pal, Kunal
Qian, Helen
Tacheny, Sam
Williams, Aaron
Williams, Leah
Zhai, Yulin
Combinatorics
Discrete Mathematics
The most well-known Gray code of permutations is plain changes. It was discovered in the 1600s by bell-ringers who wished to order the permutations of [n] by swaps (e.g., 123, 132, 312, 321, 231, 213 for n = 3). In other words, plain changes traces a Hamilton path in the permutohedron. In 2013 it was shown that plain changes can be generated by a greedy algorithm: swap the largest value. Algorithm J replaces the swap operation with the jump operation (which moves a larger digit past one or more smaller digits) and forms the basis of the wildly successful Combinatorial Generation via Permutation Languages series of papers. Here we further generalize this line of research to languages of s-words (i.e., multiset permutations). We generalize jumps to bumps, which moves a sequential run of the same larger digit past one or more smaller digits. Algorithm B greedily applies minimum-length bumps prioritized by largest value, then largest index, then rightward before leftward (e.g. 1122, 1221, 1212, 2112, 2121, 2211 for s = (2, 2)). We show that the algorithm works for s-word languages avoiding a wide variety of tame patterns. Specific applications include efficient algorithm for generating s-Stirling words (which avoid 121) and new Gray codes for various s-Catalan objects (which avoid 132 and 121). The former result leads to Hamilton paths in every s-permutahedron.
title Exhaustive Generation of Pattern-Avoiding s-Words
topic Combinatorics
Discrete Mathematics
url https://arxiv.org/abs/2508.16039