1,516 views
0 votes
0 votes
There is a theorem

Every sequence of n^2 + 1 distinct real numbers contains a subsequence of length n + 1 that
is either strictly increasing or strictly decreasing.

Proof: Let a1, a2,...,an2+1 be a sequence of n^2 + 1 distinct real numbers.Associate an ordered
pair with each term of the sequence, namely, associate (ik, dk) to the term ak, where ik is the
length of the longest increasing subsequence starting at ak, and dk is the length of the longest
decreasing subsequence starting at ak.
Suppose that there are no increasing or decreasing subsequences of length n + 1. Then ik
and dk are both positive integers less than or equal to n, for k = 1, 2,...,n^2 + 1. Hence, by the
product rule there are n2 possible ordered pairs for (ik, dk). By the pigeonhole principle, two of
these n^2 + 1 ordered pairs are equal. In other words, there exist terms as and at , with s<t
such that is = it and ds = dt . We will show that this is impossible. Because the terms of the
sequence are distinct, either as < at or as > at . If as < at , then, because is = it , an increasing
subsequence of length it + 1 can be built starting at as, by taking as followed by an increasing
subsequence of length it beginning at at . This is a contradiction. Similarly, if as > at , the same
reasoning shows that ds must be greater than dt , which is a contradiction.

 

 

My question is how n^2 ordered pair possible for (ik,dk) ??

1 Answer

Best answer
4 votes
4 votes
What values $i_k$ can take. Well it can't take 0, because  it's a length of increasing subseq. starting at kth position, so even if $a_{k+1}, a_{k+2}, ... , a_{n^2+1}$ are all less than $a_k$, we still have $a_k$, hence length 1. For the sake of contradiction we are assuming that there is no increasing subsequence of length $n+1$, so maximum value is $n$. Same applies to values of $d_k$.

So there are $n$ values for $i_k$, $n$ values for $d_k$, by multiplication rule there are $n^2$ possible values for $(i_k, d_k)$.
selected by

Related questions

0 votes
0 votes
0 answers
1
Abhijit Sen 4 asked Sep 15, 2018
281 views
HI , someone please explain this theorem with an easy explanation
2 votes
2 votes
0 answers
2
0 votes
0 votes
3 answers
3
Anmol Verma asked Jan 9, 2017
1,488 views
1) T(n)=T(n-1)+1/n.2) T(n)=T(n-1) +1/log(n)3)T(n)=3T((n/3) - 2)+n/2.4)T(n)=T(n/2)+T(n/4)+T(n/8)+n.Use Masters theorem