Run lengths in words maximizing subsequence occurrences
Menon and Singh asked for a nontrivial family of binary words in which every pattern has a host of each length maximizing its number of subsequence occurrences. We answer their question for the family specified by any two positive run-length thresholds. If every interior run of each letter in the pattern meets its threshold, an optimal host of every length satisfies the same bounds. This remains true with prescribed letter counts. On any finite alphabet, upward-closed conditions on the words separating successive runs of the same letter pass from patterns to a maximizing host for every nonnegative weighted sum of their occurrence counts. For an alternating sequence of r ≥ 2 constant blocks of common length t, we also determine the exact maximum at every host length from rt through (r + 2)t and identify the first possible change in the optimal run count.
Authors
- Scott Schubr (ORCID: https://orcid.org/0009-0009-7357-4439)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24694428
- Primary Topic
- semigroups and automata theory
- Type
- preprint