Sharp run bounds for subsequence occurrences over finite alphabets
Bruda asked for a run formula and a sharp bound for the number of occurrences of a pattern as a subsequence of a word over an arbitrary finite alphabet. We give the formula and determine the exact maximum when the pattern run lengths, the number of host runs and an upper bound on their lengths are prescribed. A pattern and a host with alternating run letters attain the maximum for every choice of these parameters. The maximum is an explicit polynomial in the integer part of half the excess number of host runs. We also determine the largest possible number of contributing terminal-run tuples and give an exact formula for every fixed pattern in hosts whose run letters cycle through the alphabet.
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.24697072
- Primary Topic
- semigroups and automata theory
- Type
- preprint