Abstract
As a kind of converse of the celebrated Erdős–Szekeres theorem, we present a necessary and sufficient condition for a sequence of length n to contain a longest increasing subsequence and a longest decreasing subsequence of given lengths x and y, respectively.
1. Introduction
In 1935, Hungarian mathematicians Paul Erdős and George Szekeres proved a celebrated theorem, which is now a classic, on relations between lengths of a sequence and its increasing (decreasing) subsequence [1].
Theorem 1.
(Erdős–Szekeres) Suppose
and is a sequence of real numbers. Then this sequence contains a monotonic increasing (decreasing) subsequence of terms or a monotonic decreasing (increasing) subsequence of terms.
More than 85 years have passed since then, and a whole subarea of combinatorics has grown up from the Erdős–Szekeres theorem. Even today we cannot fully appreciate the significance of this theorem, see, for instance, [2,3,4,5,6,7,8].
The main goal of this paper is to describe the complete family of constraints on the lengths of a sequence, its longest increasing subsequence, and its longest decreasing subsequence.
2. Results
Theorem 2.
There exists a sequence T of length containing a longest increasing subsequence of length and a longest decreasing subsequence of length if and only if the numbers x, y and n satisfy the following conditions:
Proof.
If either or the claim is evident.
In what follows, , and .
Necessity of the condition (1) immediately follows from the theorem of Erdős–Szekeres. Assume that the condition (1) is not satisfied, i.e., , then, according to the Erdős–Szekeres theorem, the sequence T of length n contains a monotone increasing subsequence of the length or a monotone decreasing subsequence of the length , which contradicts the hypothesis of the theorem. The violation of the condition (2) makes impossible the existence of two subsequences with specified lengths, one of which increases, while the other decreases. In fact, these two subsequences can have no more than one element in common; that is, the sum of their lengths should not exceed .
Sufficiency. Assume that and , and build a sequence T of length n, such that . This sequence is built according to the following scheme. We take a sequence of n natural numbers and divide it into x groups, in such a way that and satisfies the following conditions:
- The numbers in each group are arranged in decreasing order.
- All the numbers of a subsequent group are greater than all the numbers of a preceding group.
- The first group consists of y elements: , which is possible by the condition .
- We divide the remaining elements into groups as follows. Let and . Note that and . The first r groups represent decreasing subsequences of the length :….The last groups represent decreasing subsequences of length p. (If , then all decreasing subsequences have the length p):,…
Before passing to the proof of the sufficiency, we prove the following.
Claim 1.
At the partition of elements into groups satisfying Conditions 1–4, the number of elements in each group does not exceed y.
Proof.
It is given that . Then,
in accordance with the condition . Thus
If , then all groups are of the same length p and .
If , then taking into account that , and the fact that p and y are positive integers, we conclude with , while all the groups are of length p or . □
By the above construction and Claim 1, the longest decreasing subsequence in T is the first group and thus has length y, while each longest increasing subsequence is obtained by choosing exactly one element from each of x groups, giving length x. □
Example 1.
Consider , and note that the conditions (1) and (2) are satisfied and and . By the construction given in the proof,
Clearly, the longest decreasing sequence of T is and has length , and the longest increasing subsequences each have length .
Remark 1.
There are other methods of building sequences satisfying the conditions (1) and (2). For instance, by choosing the last group to be the longest decreasing subsequence rather than the first, or, say, by first creating the group consisting of x increasing integers , and then adding increasing groups of nearly equal size so that all the numbers in each group is smaller than the numbers in any previous group.
Author Contributions
Conceptualization, E.J.I.; Investigation, V.E.L.; Writing–original draft preparation, V.E.L.; Writing–review and editing, E.J.I.
Funding
This research received no external funding.
Acknowledgments
We would like to thank the reviewers for their comments, which helped us to improve the presentation of the paper.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Erdős, P.; Szekeres, G. A combinatorial problem in geometry. Compositio Mathematica 1935, 2, 463–470. [Google Scholar]
- Bukh, B.; Sevekari, A. Linear orderings of combinatorial cubes. arXiv 2019, arXiv:1906.118669. [Google Scholar]
- Deorowich, S. On Some Variants of the Longest Increasing Subsequence Problem. Theor. Appl. Inform. 2009, 21, 135–148. [Google Scholar]
- Gottlieb, E.; Sheard, M. Erdős-Szekeres results for set partitions. Integers 15 2015, 8, A29. [Google Scholar]
- Romik, D. The Surprising Mathematics of Longest Increasing Subsequences. In Institute of Mathematical Statistics Textbooks, 4; Cambridge University Press: New York, NY, USA, 2015; p. xi+353. [Google Scholar]
- Stanley, R.P. Increasing and decreasing subsequences and their variants. Int. Congr. Math. 2007, I, 545–549. [Google Scholar]
- Steele, J.M. Variations on the monotone subsequence theme of Erdős and Szekeres. In IMA Volumes in Mathematics and Its Applications; Springer: New York, NY, USA, 1995; Volume 72, pp. 111–131. [Google Scholar]
- Xu, X.; Liang, M.; Luo, H. Ramsey Theory: Unsolved Problems and Results; De Gruyter/University of Science and Technology of China Press: Berlin, Germany; Boston, MA, USA, 2018; p. 190. [Google Scholar]
© 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).