Answer: The minimum value is 2k(4k2+k−1).
Let us number each day of the tournament in order as 1,2,…,C22k. Let us sort the arrival dates of each player as b1≤b2≤b2k, and the departure dates as e1≥e2≥⋯≥e2k (note that here this is not indexed by competitor number; a competitor may check in on day bi but check out on day ej.) The total hotel cost is
i=1∑2k(ei−bi+1).
(1) Estimation: For this, we need to estimate ei−bi+1. Note that before day bi+1 only i competitors have checked in, so there can be at most C2i matches, thus bi+1≤C2i+1. Similarly, on day ei+1 only i competitors remain, so at most C2i matches can be played, thus ei≥C22k−C2i. Therefore
ei+1−bi+1+1≥C22k−2C2i=k(2k−1)−i(i−1).(1)
When i>k, the above can be further improved: consider the first i competitors to arrive and the last i competitors to leave, among which there are at least 2i−2k duplicates. Note that the matches between these duplicated competitors are counted twice in Eq. (1), so when i>k, we have
ei+1−bi+1+1≥C22k−2C2i+C22i−2k=(2k−i)2.
Thus the lower bound of the total hotel cost is
i=0∑k(k(2k−1)−i(i−1))+i=k+1∑2k(2k−i)2=21k(4k2+k−1).(2)
(2) Construction: Below we provide a construction such that all of the above equalities are satisfied. First divide all competitors into two groups of size k, X={X1,⋯,Xk} and Y={Y1,⋯,Yk}. Next, divide the tournament into the following four segments:
(i) First let X1,⋯,Xk check in in this order, and after Xi checks in, have them play against all already-checked-in Xj.
(ii) Next let Y1,⋯,Yk check in in this order, and after Yj checks in, have them play against all Xi(i>j).
(iii) Next let Xk,⋯,X1 check out in this order, and before Xi checks out, have them play against all Yj(i≤j).
(iv) Finally let Yk,⋯,Y1 check out in this order, and before Yi checks out, have them play against all remaining Yj.
First, note that for 0≤s≤k−1, from the check-in of Tk−s to the check-out of Sk−s, the number of matches during this period is
j=k−s∑k−1(k−j)+1+j=k−s∑k−1(k−j+1)=(s+1)2.(3)
And when i>k, bi+1 is the arrival day of Ti−k+1, ei+1 is the departure day of Si−k+1, thus we have
ei+1−bi+1+1=(2k−i)2, which is exactly the minimum value in Eq. (2).
When i≤k, note that the i competitors before bi+1 all belong to X, thus bi+1=C2i+1. Similarly, the i competitors after ei+1 all belong to Y, thus ei+1=C22k−C2i. Thus the equality in Eq. (1) holds. This means that this tournament schedule simultaneously makes both inequalities hold with equality, thus achieving the minimum value.