Problem 5
An integer is given. A collection of soccer players, no two of whom are of the same height, stand in a row. Sir Alex wants to remove players from this row leaving a new row of players in which the following conditions hold: no one stands between the two tallest players, no one stands between the third and fourth tallest players, , no one stands between the two shortest players. Show that this is always possible.
Step 3 of 7: A first repeated block appears early
Detailed analysis
Scan the row from left to right, position by position, and stop at the first index where the block containing already contains an earlier player with ; call this repeated block . Such a repeat must occur among the first positions, because there are only blocks, so by the pigeonhole principle scanned players cannot all lie in different blocks. Minimality of then forces every block other than to contribute at most player to the initial segment , while contributes exactly players there, namely and .