Rearrangement inequality
摘抄自: https://en.wikipedia.org/wiki/Rearrangement_inequality#Proof
In mathematics, the rearrangement inequality[1] states that
- {\displaystyle x_{n}y_{1}+\cdots +x_{1}y_{n}\leq x_{\sigma (1)}y_{1}+\cdots +x_{\sigma (n)}y_{n}\leq x_{1}y_{1}+\cdots +x_{n}y_{n}}
for every choice of real numbers
- {\displaystyle x_{1}\leq \cdots \leq x_{n}\quad {\text{and}}\quad y_{1}\leq \cdots \leq y_{n}}
and every permutation
- {\displaystyle x_{\sigma (1)},\dots ,x_{\sigma (n)}}
of x1, . . ., xn. If the numbers are different, meaning that
- {\displaystyle x_{1}<\cdots <x_{n}\quad {\text{and}}\quad y_{1}<\cdots <y_{n},}
then the lower bound is attained only for the permutation which reverses the order, i.e. σ(i) = n − i + 1 for all i = 1, ..., n, and the upper bound is attained only for the identity, i.e. σ(i) = i for all i = 1, ..., n.
Note that the rearrangement inequality makes no assumptions on the signs of the real numbers.
Proof[edit]
The lower bound follows by applying the upper bound to
- {\displaystyle -x_{n}\leq \cdots \leq -x_{1}.}
Therefore, it suffices to prove the upper bound. Since there are only finitely many permutations, there exists at least one for which
- {\displaystyle x_{\sigma (1)}y_{1}+\cdots +x_{\sigma (n)}y_{n}}
is maximal. In case there are several permutations with this property, let σ denote one with the highest number of fixed points.
We will now prove by contradiction, that σ has to be the identity (then we are done). Assume that σ is not the identity. Then there exists a j in {1, ..., n − 1} such that σ(j) ≠ j and σ(i) = i for all i in {1, ..., j − 1}. Hence σ(j) > j and there exists a k in {j + 1, ..., n} with σ(k) = j. Now
- {\displaystyle j<k\Rightarrow y_{j}\leq y_{k}\qquad {\text{and}}\qquad j<\sigma (j)\Rightarrow x_{j}\leq x_{\sigma (j)}.\quad (1)}
Therefore,
- {\displaystyle 0\leq (x_{\sigma (j)}-x_{j})(y_{k}-y_{j}).\quad (2)}
Expanding this product and rearranging gives
- {\displaystyle x_{\sigma (j)}y_{j}+x_{j}y_{k}\leq x_{j}y_{j}+x_{\sigma (j)}y_{k}\,,\quad (3)}
hence the permutation
- {\displaystyle \tau (i):={\begin{cases}i&{\text{for }}i\in \{1,\ldots ,j\},\\\sigma (j)&{\text{for }}i=k,\\\sigma (i)&{\text{for }}i\in \{j+1,\ldots ,n\}\setminus \{k\},\end{cases}}}
which arises from σ by exchanging the values σ(j) and σ(k), has at least one additional fixed point compared to σ, namely at j, and also attains the maximum. This contradicts the choice of σ.
If
- {\displaystyle x_{1}<\cdots <x_{n}\quad {\text{and}}\quad y_{1}<\cdots <y_{n},}
then we have strict inequalities at (1), (2), and (3), hence the maximum can only be attained by the identity, any other permutation σ cannot be optimal.
Generalization[edit]
A Generalization of the Rearrangement inequality states that for all real numbers {\displaystyle x_{1}\leq \cdots \leq x_{n}} and any choice of functions {\displaystyle f_{i}:[x_{1},x_{n}]\rightarrow \mathbb {R} ,i=1,2,...,n}
such that
- {\displaystyle f'_{1}(x)\leq f'_{2}(x)\leq ...\leq f'_{n}(x)\quad \forall x\in [x_{1},x_{n}]}
the inequality
- {\displaystyle \sum _{i=1}^{n}f_{i}(x_{n-i+1})\leq \sum _{i=1}^{n}f_{i}(x_{\sigma (i)})\leq \sum _{i=1}^{n}f_{i}(x_{i})}
holds for every permutation {\displaystyle x_{\sigma (1)},\dots ,x_{\sigma (n)}} of {\displaystyle x_{1},\dots ,x_{n}}
[2].
Rearrangement inequality的更多相关文章
- INEQUALITY BOOKS
来源:这里 Bất Đẳng Thức Luôn Có Một Sức Cuốn Hút Kinh Khủng, Một Số tài Liệu và Sách Bổ ích Cho Việc Học ...
- cf536c——思路题
题目 题目:Lunar New Year and Number Division 题目大意:给定一个数字序列,可以任意分组(可调整顺序),但每组至少两个,求每组内数字和的平方的最小值 思路 首先,易证 ...
- hduoj 4710 Balls Rearrangement 2013 ACM/ICPC Asia Regional Online —— Warmup
http://acm.hdu.edu.cn/showproblem.php?pid=4710 Balls Rearrangement Time Limit: 6000/3000 MS (Java/Ot ...
- HDU 5933 ArcSoft's Office Rearrangement 【模拟】(2016年中国大学生程序设计竞赛(杭州))
ArcSoft's Office Rearrangement Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K ...
- HDU 4611Balls Rearrangement(思维)
Balls Rearrangement Time Limit: 9000/3000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Othe ...
- Balls Rearrangement(HDU)
Problem Description Bob has N balls and A boxes. He numbers the balls from 0 to N-1, and numbers the ...
- hdu4611 Balls Rearrangement
Balls Rearrangement Time Limit: 9000/3000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others) ...
- 2013 多校联合 2 A Balls Rearrangement (hdu 4611)
Balls Rearrangement Time Limit: 9000/3000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Othe ...
- MM bound 与 Jensen's inequality
MM bound 与 Jensen's inequality 简森不等式 在使用最大似然估计方法求解模型最优解的时候,如果使用梯度下降(GD or SGD)或者梯度上升(GA or SGA),可能收敛 ...
随机推荐
- 「日常训练」The Necklace(UVA-10054)
代码 for(int i=0; i!=n; ++i) { int u = cin.nextInt(); int v = cin.nextInt(); edges.add(new Edge(u,v)); ...
- 接口自动化·分享·第二篇·你必须了解的HttpRequest和HttpResponse
完成一个接口调用其实就是完成了一次http请求,所以你必须要清楚一个http请求的组成. 一次完整的请求包含:请求+响应. 一.HttpRequest请求对象 要调用一个接口,首先要准备的是一个请求对 ...
- 【snmp】Linux开启snmp及查询
1.Linux snmp 1.安装snmp yum install -y net-snmp* 2.备份snmp配置 cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.co ...
- 【C#】人脸识别 视频数据转图片数据
使用虹软人脸识别的开发过程中遇到了转换的问题 因为不会用C#直接打开摄像头,就只能用第三方dll.一开始用Aforge,后来发现有个问题,关闭摄像头老是陷入等待,所以抛弃了.前一阵子开始用封装了Ope ...
- VisualSVN Server的迁移
VisualSVN Server迁移涉及到两种情况: 第一种情况:VisualSVN Server没有更换电脑或者服务器,只是修改Server name. 第二种情况:当VisualSVN Serve ...
- 王者荣耀交流协会第二次Scrum立会
会议时间:2017年10月21号 17:00-17:22,时长22分钟. 会议地点:首尔名家里面的大桌子(PS:感谢组长大大请我们吃饭~)立会内容:每位同学汇报了今日工作(高远博与王超同学在今日有 ...
- MathExam第二次作业(升级版)
MathExamLv2——林华伟 211506319 陈珍 211406263 一.预估与实际 PSP2.1 Personal Software Process Stages 预估耗时(分钟) 实 ...
- Windows 10 系统下Python环境的搭建与配置
1. 在https://www.python.org/downloads/release/python-352/网站上下载python版本 2. 配置环境 右击计算机属性,然后选择高级系统设置 3. ...
- C/C++学习计划
学习内容:C语言程序设计精髓/计算机程序设计(C++) 学习理由:基础比较薄弱,想先打好基础. 时间安排:每天学习两课时. mooc地址:http://www.icourse163.org/home. ...
- 给个理由走下去——读《我是一只IT小小鸟》有感
和很多人一样,高考失利,迷迷茫茫的走进了软件学院.关于这个专业,具体学什么是一概不知,只知道学软件的很帅很帅,幻想着以后当个行侠仗义的黑客,或是开发一款自己的游戏都是十分诱惑人的.然而这个世界有个不成 ...