English

An algorithm for bounding extremal functions of forbidden sequences

Discrete Mathematics 2019-12-12 v1 Data Structures and Algorithms Combinatorics

Abstract

Generalized Davenport-Schinzel sequences are sequences that avoid a forbidden subsequence and have a sparsity requirement on their letters. Upper bounds on the lengths of generalized Davenport-Schinzel sequences have been applied to a number of problems in discrete geometry and extremal combinatorics. Sharp bounds on the maximum lengths of generalized Davenport-Schinzel sequences are known for some families of forbidden subsequences, but in general there are only rough bounds on the maximum lengths of most generalized Davenport-Schinzel sequences. One method that was developed for finding upper bounds on the lengths of generalized Davenport-Schinzel sequences uses a family of sequences called formations. An (r,s)(r, s)-formation is a concatenation of ss permutations of rr distinct letters. The formation width function fw(u)fw(u) is defined as the minimum ss for which there exists rr such that every (r,s)(r, s)-formation contains uu. The function fw(u)fw(u) has been used with upper bounds on extremal functions of (r,s)(r, s)-formations to find tight bounds on the maximum possible lengths of many families of generalized Davenport-Schinzel sequences. Algorithms have been found for computing fw(u)fw(u) for sequences uu of length nn, but they have worst-case run time exponential in nn, even for sequences uu with only three distinct letters. We present an algorithm for computing fw(u)fw(u) with run time O(nαr)O(n^{\alpha_r}), where rr is the number of distinct letters in uu and αr\alpha_r is a constant that only depends on rr. We implement the new algorithm in Python and compare its run time to the next fastest algorithm for computing formation width. We also apply the new algorithm to find sharp upper bounds on the lengths of several families of generalized Davenport-Schinzel sequences with 33-letter forbidden patterns.

Keywords

Cite

@article{arxiv.1912.04897,
  title  = {An algorithm for bounding extremal functions of forbidden sequences},
  author = {Jesse Geneson},
  journal= {arXiv preprint arXiv:1912.04897},
  year   = {2019}
}
R2 v1 2026-06-23T12:41:52.198Z