首页 > 其他 > 详细

drawer principle in Combinatorics

时间:2015-12-02 22:19:43      阅读:205      评论:0      收藏:0      [点我收藏+]

Problem 1: Given an array of real number with length (n+ 1) A:

a1,  a2, ... , an2+1.

Prove that there is either an increasing or a decreasing subarray of A with length (n + 1).

 

Proof:

  In order to prove the proposition, we just need to prove that there must be a decreasing subarray of A

with length (n + 1) when there doesn‘t exist an increasing subarray of A with length (n + 1). Let mdenote

the length of the longest increasing subarray(LIS) beginning with element ai , thus under the assumption above we

have: for all 1 ≤ i ≤n+ 1, 1 ≤ ai ≤ n. Therefore by drawer principle we have mk1 = mk2  = ...  = mk(n+1),(k< k2 <... < k(n+1)).

(otherwise we have nnumbers at most whilst we got n+ 1).We assert that‘s the disired decreasing array, otherwise aki < akj,

we have LIS(mki) ≥ LIS(mkj) + 1, and this results a contradiction.

 

drawer principle in Combinatorics

原文:http://www.cnblogs.com/astoninfer/p/5014063.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!