Maximising your Small Cases

(Xu Chen here) Hi everyone! Today I will be talking about 2018 C5, and my thought process while solving it.

(2018 C5) Let kk be a positive integer. The organising committee of a tennis tournament is to schedule the matches for 2k2k players so that every two players play once, each day exactly one match is played, and each player arrives to the tournament site the day of his first match, and departs the day of his last match. For every day a player is present on the tournament, the committee has to pay 11 coin to the hotel. The organisers want to design the schedule so as to minimise the total cost of all players' stays. Determine this minimum cost.

This question appeared on NTST 2019 as Q10. After a rather long Q9 (I think I bashed the G4), I had about 2 hours to work on the problem.

Warning: spoilers ahead (duh!).

Initial thoughts:

  • We want players to arrive late and depart early. These two are easy to achieve independently, but probably difficult to achieve together.
  • If player ii arrives on day aia_i and departs on day bib_i, then the total cost is c(k)=(biai+1)c(k) = \sum(b_i-a_i+1). Thus who arrives on which day is unimportant, only the (multi)set of days in which people arrive, and same for departures.
  • Thus we instead let a1a2a2ka_1\leq a_2\leq\dots\leq a_{2k} be the days in which people arrive, and b1b2b2kb_1\leq b_2\leq\dots\leq b_{2k} be the days in which people depart. Note aia_i and bib_i need not refer to the same player.
  • There is a trivial bound of an1+(n12)a_n\leq 1+\binom{n-1}{2}, since the first n1n-1 players cannot play more than (n12)\binom{n-1}{2} games, and a similar bound of b2kn+1(2k2)(n12)b_{2k-n+1}\geq\binom{2k}{2}-\binom{n-1}{2}.
  • This bound is probably the correct one for the first few nn's (about kk? k/2k/2?), but definitely not for all of them.
  • Trying some small cases, c(1)=2,c(2)=17c(1) = 2, c(2) = 17, and c(3)c(3) onwards seem hard to determine easily.

What now? We need some idea of what the match arrangement is like beyond the first and last few. Let's look at the construction for c(2)=17c(2)=17. Match played:121323142434Arrivals/departures:a1,a2a3a4,b1b2b3,b4\begin{array}{c|c|c|c|c|c|c} \text{Match played:} & 12 & 13 & 23 & 14 & 24 & 34 \\ \hline \text{Arrivals/departures:} & a_1,a_2 & a_3 & & a_4,b_1 & b_2 & b_3,b_4 \end{array} Already there's some freedom: Swapping matches 23 and 14 decreases both a4a_4 and b1b_1 by 1, but keeps the cost at 17. This suggests that for the "center" values, we should not be bounding single aia_i's or bjb_j's, but rather differences of the form bjaib_j-a_i.

Once again, there's a trivial bound of a2kb1a_{2k}\leq b_1, since no one can leave before the last player arrives. Thus b1a2k0b_1-a_{2k}\geq 0.

What about b2a2k1b_2-a_{2k-1}? That's 3 in the construction above, and the matches in between are 13,23,14,24.

This should make sense: If the last two people to arrive are different from the first two people to leave, then they need 22=42^2=4 matches between them, so b2a2k141=3b_2-a_{2k-1}\geq 4-1=3. On the other hand, if the same person arrives and leaves in that period of time, then that person must have played all 2k12k-1 other people, giving b2a2k12k2b_2-a_{2k-1}\geq 2k-2, a much bigger bound.

Generalising this result should give bna2kn+1n21b_n-a_{2k-n+1}\geq n^2-1 for sufficiently small nn. To figure out exactly which nn this result holds for, we will actually need to work out both bounds explicitly. It turns out this holds for all nkn\leq k. Let's prove that.

Lemma. For each n=1,2,,kn=1,2,\dots,k, we have bna2kn+1n21b_n-a_{2k-n+1}\geq n^2-1.

Proof. Let AA be the set of nn players that arrived the latest, and BB be the set of nn players that departed the earliest. Suppose AB=m|A\cap B|=m. Then, the following matches must have occurred between days a2kn+1a_{2k-n+1} and bnb_n:

  • Every two players in ABA\cap B must have played each other, giving (m2)\binom{m}{2} matches.
  • Every player in ABA\cap B must have played every player not in ABA\cap B, giving m(2km)m(2k-m) matches.
  • Every player in ABA\setminus B must have played every player in BAB\setminus A, giving (nm)2(n-m)^2 matches.

Adding up gives bna2kn+1(m2)+m(2km)+(nm)21=n21+m(m1+4k4n)2.\begin{align*} b_n-a_{2k-n+1} &\geq \binom{m}{2} + m(2k-m) + (n-m)^2 - 1 \\ &= n^2 - 1 + \frac{m(m-1+4k-4n)}{2}. \end{align*} When nkn\leq k, the fraction on the right is always non-negative, giving our result.

Thus, i=12k(biai)=n=1kb2kn+1n=1kan+n=1k(bna2kn+1)n=1k[(2k2)(n12)]n=1k[1+(n12)]+n=1k(n21)=k(k1)(4k+5)2.\begin{align*} \sum_{i=1}^{2k} (b_i-a_i) &= \sum_{n=1}^{k} b_{2k-n+1} - \sum_{n=1}^k a_n + \sum_{n=1}^{k} (b_n-a_{2k-n+1}) \\ &\geq \sum_{n=1}^{k} \left[\binom{2k}{2}-\binom{n-1}{2}\right] - \sum_{n=1}^k \left[1+\binom{n-1}{2}\right]+ \sum_{n=1}^{k} \left(n^2-1\right) \\ &= \frac{k(k-1)(4k+5)}{2}. \end{align*}

At this point I ran out of time, so I quickly wrote down my current progress and hoped for a good partial.

I got 6/7. Turns out this is already the correct bound. Adding 2k2k gives c(k)=i=12k(biai+1)k(4k2+k1)2,c(k) = \sum_{i=1}^{2k} (b_i-a_i+1) \geq \frac{k(4k^2+k-1)}{2}, which is the correct answer. The construction follows pretty easily from the equality cases of the proof above, which are

  • For i=1,2,,ki=1,2,\dots,k, the first (i12)\binom{i-1}{2} matches are between the first i1i-1 players to arrive.
  • For i=1,2,,ki=1,2,\dots,k, the last (i12)\binom{i-1}{2} matches are between the last i1i-1 players to depart.
  • The last kk players to arrive are disjoint from the first kk players to depart (since we always need m=0m=0 for equality).
  • For each n=1,2,,kn=1,2,\dots,k, the n2n^2 matches between days a2kn+1a_{2k-n+1} and bnb_n are between the last nn players to arrive and the first nn players to depart.

I'll leave the construction as an exercise.

All in all, I think this was a pretty cool question. Perhaps I will emphasize one point again: Observe how the construction for k=2k=2 is used to motivate and guide the proof along. This is how you should be using your small cases: By looking for properties that generalise, and as a check for whether what you are trying to prove makes sense.

Comments

Popular posts from this blog

SMO Open 2024 ??% Speedrun

Musings about the IMO