Maths Olympiad Prep

Library / /1 of 2

Combinatorics Difficulty 7.6 National Olympiad, round 2 Prove it Zhautykov Olympiad

Problem:

Let n2n \geq 2 be an integer. Elwyn is given an n×nn \times n table filled with real numbers (each cell of the table contains exactly one number). We define a rook set as a set of nn cells of the table situated in nn distinct rows as well as in nn distinct columns. Assume that, for every rook set, the sum of nn numbers in the cells forming the set is nonnegative.

By a move, Elwyn chooses a row, a column, and a real number aa, and then he adds aa to each number in the chosen row, and subtracts aa from each number in the chosen column (thus, the number at the intersection of the chosen row and column does not change). Prove that Elwyn can perform a sequence of moves so that all numbers in the table become nonnegative.

Solutions — 3

Solution 1

Solution:

We start with the following known consequence of Hall's lemma.

Lemma. Let G=(UV,E)G=(U \sqcup V, E) be a bipartite multigraph with parts UU and VV, both of size nn. Assume that each vertex has degree kk; then the edges can be partitioned into kk perfect matchings.

Proof. Induction on kk; the base case k=1k=1 is trivial. To perform the step, it suffices to find one perfect matching in the graph: removing the edges of that matching, we obtain a graph with all degrees equal to k1k-1.

The existence of such matching is guaranteed by Hall's lemma. Indeed, let UU' be any subset of UU, and let VV' be the set of vertices adjacent to UU'. Put u=Uu=|U'| and v=Vv=|V'|. The total degree of vertices in UU' is kuk u, so the total degree of vertices in VV' is at least kuk u; hence kukvk u \leq k v and therefore uvu \leq v, which establishes the conditions of Hall's lemma.

The following claim is the principal step in this solution.

Claim. In any good table, one can decrease some numbers so that the table becomes balanced.

Proof. Say that a cell in a good table is blocked if it is contained in a vanishing rook set (so, decreasing the number in the cell would break goodness of the table). First, we show that in any good table one can decrease several numbers so that the table remains good, and all its cells become blocked.

Consider any cell cc; let ϵ\epsilon be the minimal sum in a rook set containing that cell. Decrease the number in cc by ϵ\epsilon; the obtained table is still good, but now cc is blocked. Apply such operation to all cells in the table consecutively; we arrive at a good table all whose cells are blocked. We claim that, in fact, this table is balanced.

In the sequel, we use the following correspondence. Let RR and CC be the sets of rows and columns of the table, respectively. Then each cell corresponds to a pair of the row and the column it is situated in; this pair may be regarded as an edge of a bipartite (multi)graph with parts RR and CC. This way, any rook set corresponds to a perfect matching between those parts.

Arguing indirectly, assume that there is a non-vanishing rook set S={s1,s2,,sn}S=\{s_1, s_2, \ldots, s_n\}. Each cell sis_i is contained in some vanishing rook set ViV_i. Now construct a bipartite multigraph G=(RC,E)G=(R \sqcup C, E), introducing, for each set ViV_i, nn edges corresponding to its cells (thus, GG contains n2n^2 edges some of which may be parallel).

Mark each edge with the number in the corresponding cell. Since the sets ViV_i are all vanishing, the sum of all n2n^2 marks is zero.

Now, remove nn edges corresponding to the cells of SS, to obtain a graph GG'. Since the sum of numbers in the cells of SS is positive, the sum of the marks in GG' is negative. On the other hand, the degree of every vertex in GG' is n1n-1, so by the Lemma its edges can be partitioned into n1n-1 perfect matchings. At least one of the obtained matchings has negative sum of marks; so this matching corresponds to a rook set with a negative sum. This is impossible in a good table; this contradiction finishes the proof.

Back to the problem, let TT be Elwyn's table. Applying the Claim, decrease some numbers in it to get a balanced table BB. By Proposition 2, Elwyn can perform some moves on table BB so as to get a table filled with zeros. Applying the same moves to TT, Elwyn gets a table where all numbers are nonnegative, as required.

Solution 2

Solution:

Say that the badness of a table is the sum of absolute values of all its negative entries. In Step 1, we will show that, whenever the badness of a good table is nonzero, Elwyn can make some moves decreasing the badness. In a (technical) Step 2, we will show that this claim yields the required result.

Step 1. Let rr be a row containing some negative number. Mark all cells in row rr containing negative numbers, and mark all cells in other rows containing nonpositive numbers. Then there is no rook set consisting of marked cells, since that set would not be nonnegative.

By K\"onig's theorem (which is equivalent to Hall's lemma), for some aa and bb with a+b<na+b<n, one can choose aa rows and bb columns such that their union contains all marked cells; fix such a choice. Number the rows from top to bottom, and the columns from left to right. We distinguish two cases.

Case 1: Row rr is among the aa chosen rows.

Permute the rows and columns so that the top aa rows and the right bb columns are chosen. Next, if row rr contains a negative number in some of the aa leftmost entries, swap the column containing that entry with the (nb)(n-b)th one (recall that nb>an-b>a). As a result, there exists x>ax>a such that the xxth left entry in row rr is negative (while the chosen columns are still the bb rightmost ones).

Now, rectangle PP formed by the bottom nan-a rows and the left aa columns contains only positive numbers, as it contains no marked cells, as well as no cells from row rr. Let mm be the minimal number in that rectangle.

Let Elwyn add mm to all numbers in the first aa rows, and subtract mm from all numbers in the first aa columns. All numbers which decrease after this operation are situated in PP, so there appear no new cell containing a negative number, and no negative number decreases. Moreover, by our choice, at least one negative number (situated in row rr and column xx) increases. Thus, the badness decreases, as desired.

Case 2: Row rr is not among the aa chosen rows.

Add row rr to the aa chosen rows, and increase aa by 1. Notice that the negative numbers in row rr are covered by the bb chosen columns. As in the previous case, we permute the rows and columns so that the top aa rows and the right bb columns are chosen. All negative numbers in row rr automatically come to the right bb columns. Now the above argument applies verbatim.

Step 2. We show that among the tables which Elwyn can obtain (call such tables reachable), there exists a table with the smallest badness. Applying the argument in Step 1 to that table, we get that its badness is zero, which proves the claim of the problem.

Notice that the effect of any sequence of Elwyn's moves has the form described in Proposition 1. Moreover, subtraction of some number ϵ\epsilon from all the aia_i and the bib_i provides no effect on the result. Hence, we may assume that the sums of the aia_i and of the bib_i are both zero.

Let tijt_{ij} denote the (i,j)(i, j)th entry of the initial table TT. For any two sequences a=(a1,,an)\mathbf{a}=(a_1, \ldots, a_n) and b=(b1,,bn)\mathbf{b}=(b_1, \ldots, b_n) both summing up to zero, denote by T(a,b)T(\mathbf{a}, \mathbf{b}) the table obtained from TT by adding aia_i to all numbers in the iith row, and subtracting bjb_j from all numbers in the jjth column, for all i,j=1,2,,ni, j=1,2, \ldots, n; in particular, T=T(0,0)T=T(\mathbf{0}, \mathbf{0}), where 0=(0,0,,0)\mathbf{0}=(0,0, \ldots, 0). Let f(a,b)f(\mathbf{a}, \mathbf{b}) denote the badness of T(a,b)T(\mathbf{a}, \mathbf{b}). Clearly, function ff is continuous. Now we intend to bound the set of values that make sense to put in sequences a\mathbf{a} and b\mathbf{b}.

Let mm be the maximal number in TT. Take any a\mathbf{a} and b\mathbf{b} summing up to zero, such that some aia_i is smaller than M=(m+b)-M=-(m+b). Then there exists an index jj with bj0b_j \geq 0; hence the entry (i,j)(i, j) in T(a,b)T(\mathbf{a}, \mathbf{b}) is tij+aibj<mM+0=bt_{ij}+a_i-b_j<m-M+0=-b, so f(a,b)>b=f(0,0)f(\mathbf{a}, \mathbf{b})>b=f(\mathbf{0}, \mathbf{0}).

So, all pairs of sequences a\mathbf{a} and b\mathbf{b} satisfying f(a,b)bf(\mathbf{a}, \mathbf{b}) \leq b should also satisfy aiMa_i \geq -M and bjMb_j \geq -M, and hence ainMa_i \leq n M and bjnMb_j \leq n M as well (since each of the sequences sums up to zero). Thus, in order to minimize f(a,b)f(\mathbf{a}, \mathbf{b}), it suffices to consider only those a\mathbf{a} and b\mathbf{b} whose entries lie in [M,nM][-M, n M]. Those values form a compact set, so the continuous function ff attains the smallest value on that set.

Solution 3

Solution:

We implement some tools from multi-dimensional convex geometry.

Each table can be regarded as a point in Rn×n\mathbb{R}^{n \times n}. The set GG of good tables is a convex cone determined by n!n! non-strict inequalities (claiming that the rook sets are nonnegative). Thus this cone is closed.

The set TT of tables which can be transformed, by a sequence of Elwyn's moves, into a table with nonnegative entries, is also a convex cone. This cone is the Minkowski sum of the (closed) cone NN of all tables with nonnegative entries and the linear subspace VV of all tables Elwyn can add by a sequence of moves. Such sum is always closed (a pedestrian version of such argument is presented in Step 2 of Solution 2).

It is easy to see that TGT \subseteq G; we need to show that T=GT=G. Arguing indirectly, assume that there is some table tGTt \in G \setminus T. Then there exists a linear function ff separating tt and TT, that is f-f takes nonnegative values on TT but a negative value on tt.

This function ff has the following form: Let xRn×nx \in \mathbb{R}^{n \times n} be a table, and denote by xijx_{ij} its (i,j)(i, j)th entry. Then
f(x)=i,j=1nfijxij f(x)=\sum_{i, j=1}^{n} f_{ij} x_{ij}
where fijf_{ij} are some real constants. Form a table FF whose (i,j)(i, j)th entry is fijf_{ij}.

Since f(x)0f(x) \geq 0 for all tables in NN having only one nonnegative entry, we have fij0f_{ij} \geq 0 for all ii and jj. Moreover, ff must vanish on all tables in the subspace VV, in particular - on each table having 1 in some row, -1 in some column, and 0 elsewhere (the intersection of the row and the column also contains 0). This means that the sum of numbers in any row in FF is equal to the sum of the numbers in any its column.

Now it remains to show that FF is the sum of several rook tables which contain some nonnegative number pp at the cells of some rook set, while all other entries are zero; this will yield f(t)0f(t) \geq 0 which is not the case. In other words, it suffices to prove that one can subtract from FF several rook tables to make it vanish. This can be done by means of Hall's lemma again: if the table is still nonzero, it contains nn positive entries forming a rook set, and one may make one of them vanish, keeping the other entries nonnegative, by subtracting a rook table.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.