| ▲ | clbrmbr 13 hours ago | |
> given a sequence of {k^2+1} distinct real numbers, one can find a subsequence of length {k+1} which is either increasing or decreasing {-2, 1, -1, 1/2, -1/2, 1/3, -1/3, 1/4, … -1/(k/2)} is a sequence of {k^2+1} distinct real numbers, but the longest increasing or decreasing subsequences are of length 2, not k+1. What am I missing? | ||
| ▲ | dmehrle 13 hours ago | parent | next [-] | |
Subsequences need not be contiguous. In your example, taking every other number gives the desired monotone subsequence. | ||
| ▲ | seanhunter 9 hours ago | parent | prev | next [-] | |
The definition of a subsequence is if you have a(n) as a sequence of real numbers and n_1 < n_2 <n_3 < ... is an increasing sequence of integers then a(n_1), a(n_2), a(n_3), ... is a subsequence of a_n and is denoted a(n_k). So the indexes don't need to be contiguous, just increasing. So in your example 2, 1, 1/2, 1/3, ... is a decreasing subsequence. edit: changed to using function-style notation because the nested subscript notation looks confusing in ascii | ||
| ▲ | andrepd 13 hours ago | parent | prev [-] | |
Non-consecutive. | ||