MathLabs

Problem 3

Let x1,x2,…,xn x_1,x_2,\ldots,x_n be real numbers satisfying ∣x1+x2+⋯+xn∣=1|x_1+x_2+\cdots+x_n|=1 and ∣xi∣≤(n+1)/2|x_i|\le(n+1)/2 for every i i . Show that there is a permutation y1,…,yn y_1,\ldots,y_n of the xi x_i such that ∣y1+2y2+⋯+nyn∣≤(n+1)/2|y_1+2y_2+\cdots+ny_n|\le(n+1)/2.
Step 3 of 4: Connect by adjacent transpositions
In plain words

Connect by adjacent transpositions

∣ΔW∣=∣a−b∣≤n+1|\Delta W|=|a-b|\le n+1
Detailed analysis

An adjacent swap at positions k,k+1 k,k+1 changes the weighted sum by a−b a-b in absolute value. Since ∣a∣,∣b∣≤(n+1)/2|a|,|b|\le(n+1)/2, this change is at most n+1 n+1.