GATE Computer ScienceHardGATE CS
A sequence of 82 distinct real numbers is given. Which is the largest L such that EVERY such sequence is guaranteed to contain an increasing or a decreasing subsequence of length at least L?
- A. 10
- B. 41
- C. 9
- D. 11
Correct answer: A. 10
By the Erdős–Szekeres argument, if every monotone subsequence had length at most 9 then each element would get a distinct pair (longest increasing ending here, longest decreasing ending here) from {1..9}², so at most 81 elements could exist. With 82 elements some monotone subsequence has length at least 10, while 81 elements can avoid 10.
More Discrete Mathematics questions
- A permutation of {1, 2, …, 10} is chosen uniformly at random. What is the expected number of cycles in its cycle decomposition (fixed…
- How many perfect matchings does the 4-dimensional hypercube graph Q₄ (16 vertices, two vertices adjacent when their 4-bit labels differ in…
- In how many ways can a 4 × 6 board be completely tiled with 1 × 2 dominoes (equivalently, how many perfect matchings does the 4 × 6 grid…
- What is the maximum number of edges in a simple graph with 10 vertices that does not contain K₄ (the complete graph on 4 vertices) as a…
- How many subgroups (including the trivial group and the whole group) does ℤ₆ × ℤ₆ have?
- How many primitive roots does the multiplicative group of units modulo 98 have?