Exact caged length with a prescribed number of runs
A subsequence of a permutation is caged when its two endpoints are its minimum and maximum, in either order. We determine the smallest possible longest caged subsequence for every permutation length and every prescribed number of maximal contiguous monotone runs. Equivalently, we give the exact maximum length N(M,r) of a permutation with r runs and no caged subsequence longer than M. For at least five runs, the nonzero capacities are 5M-6, 5M-7, or 5M-8, apart from one small exception; explicit conditions select the correct value. The main new upper bound says that a permutation of length 5M-7 with cage bound M at least 6 has at most 3M-2 runs. Its proof is geometric. Eight finite templates, verified by uniform affine rectangle inequalities, give constructions for all remaining parameters. Three finite exclusions are certified by replayable reverse-unit-propagation proofs. A portable algorithm returns an optimal permutation for every admissible length and run count. The unrestricted extremum, its critical classification, and the exact alternating capacity are credited as prior results.
Authors
- Scott Schubr (ORCID: https://orcid.org/0009-0009-7357-4439)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-01
- DOI
- https://doi.org/10.5281/zenodo.24730601
- Primary Topic
- Advanced Combinatorial Mathematics
- Type
- preprint