Switching students in a circle, due to height.
Source: Pakistan TST (2) 2017. P2
January 28, 2017
combinatoricsalgorithm
Problem Statement
There are students in a circle, one behind the other, all facing clockwise. The students have heights . If a student with height is standing directly behind a student with height or lesss, the two students are permitted to switch places Prove that it is not possible to make more than such switches before reaching a position in which no further switches are possible.