2010 USAMO Problems/Problem 2
Contents
Problem
There are students standing in a circle, one behind the
other. The students have heights
. If a
student with height
is standing directly behind a student
with height
or less, 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.
Solution
We adopt the usual convention that unless
.
With this, the binomial coefficients are defined for all integers via the
recursion:
It is clear that the circle is oriented and all the students are facing in same direction (clockwise or counterclockwise). We'll call this direction forward.
In any switch consider the taller student to have moved forward and the shorter student to have remained stationary. No backward motion is allowed. With this definition of forward motion, the first two students with heights and
are always stationary, while other students potentially move past them.
For , the student with height
can never switch places with the student with height
, and the former can make at most
more forward moves than the latter (when all the students of heights
are between
and
in the forward direction).
Therefore, if the student can make
forward steps, the
student can make at most
steps. With
and
, and a constant second difference of
, we quickly see that
.
With students in all, the total number of steps is therefore at most
. The sum is a telescoping sum since:
Comment
This process of switching is very similar to Bubble Sort, except that the terms must be in consecutive decreasing order, and wraps around . This answer seems to disagree, though, because the worst case
efficiency is
, not
.
https://en.wikipedia.org/wiki/Bubble_sort
See also
2010 USAMO (Problems • Resources) | ||
Preceded by Problem 1 |
Followed by Problem 3 | |
1 • 2 • 3 • 4 • 5 • 6 | ||
All USAMO Problems and Solutions |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.