Connect 由adjacent transpositions
An adjacent swap 在positions k,k+1 k,k+1k,k+1 changes weighted 和 由 a−b a-b a−b 中absolute value. Since ∣a∣,∣b∣≤(n+1)/2|a|,|b|\le(n+1)/2∣a∣,∣b∣≤(n+1)/2, th是change 是在most n+1 n+1n+1.