Maths Olympiad Prep

Library / Math Olympiad Second Stage Training Camp /9 of 9

Math Olympiad Second Stage Training Camp, 2015

Combinatorics Difficulty 6.5 National Olympiad Prove it Taiwan

For a sequence x1,x2,…,xnx_1, x_2, \dots, x_n of real numbers, we define its price as
max⁡1≤i≤n∣x1+⋯+xi∣. \max_{1 \le i \le n} |x_1 + \dots + x_i|.
Given nn real numbers, Dave and George want to arrange them into a sequence with a low price. Diligent Dave checks all possible ways and finds the minimum possible price DD. Greedy George, on the other hand, chooses x1x_1 such that ∣x1∣|x_1| is as small as possible; among the remaining numbers, he chooses x2x_2 such that ∣x1+x2∣|x_1 + x_2| is as small as possible, and so on. Thus, in the ithi^{th} step he chooses xix_i among the remaining numbers so as to minimise the value of ∣x1+⋯+xi∣|x_1 + \dots + x_i|. In each step, if several numbers provide the same value, George chooses one at random. Finally he gets a sequence with price GG.
Find the least possible constant cc such that for every positive integer nn, for every collection of nn real numbers, and for every possible sequence that George might obtain, the resulting values satisfy the inequality
G≤cD.G \le cD.

Solution

Answer: c=2c = 2

Solution: If initially we have 1,−1,2,−21, -1, 2, -2, then Dave will arrange them as 1,−2,2,−11, -2, 2, -1, and George will arrange them as 1,−1,2,−21, -1, 2, -2, so D=1,G=2D = 1, G = 2, hence c≥2c \ge 2.

Next we prove that G≤2DG \le 2D. Let the initial numbers be x1,x2,…,xnx_1, x_2, \dots, x_n, and suppose Dave and George arrange them respectively as d1,d2,…,dnd_1, d_2, \dots, d_n and g1,g2,…,gng_1, g_2, \dots, g_n. Let
M=max⁡1≤i≤n∣xi∣,S=∣x1+⋯+xn∣,N=max⁡{M,S}. M = \max_{1 \le i \le n} |x_i|, \quad S = |x_1 + \dots + x_n|, \quad N = \max\{M, S\}.
Then the following hold
D≥S,(1) D \geq S, \tag{1}
D≥M2, and(2) D \geq \frac{M}{2}, \text{ and} \tag{2}
G≤N=max⁡{M,S}(3) G \leq N = \max\{M, S\} \tag{3}
From these three inequalities we obtain
G≤max⁡{M,S}≤max⁡{M,2S}≤2DG \leq \max\{M, S\} \leq \max\{M, 2S\} \leq 2D

Inequality (1) is a direct consequence of the definition of price.

To prove (2), consider an index ii such that ∣di∣=M|d_i| = M, then we have
M=∣di∣=∣(d1+⋯+di)−(d1+⋯+di−1)∣≤∣d1+⋯+di∣+∣d1+⋯+di−1∣≤2D, \begin{aligned} M &= |d_i| = |(d_1 + \cdots + d_i) - (d_1 + \cdots + d_{i-1})| \\ &\leq |d_1 + \cdots + d_i| + |d_1 + \cdots + d_{i-1}| \leq 2D, \end{aligned}

It remains to prove (3). Let hi=g1+⋯+gih_i = g_1 + \cdots + g_i; we will prove by mathematical induction on ii that ∣hi∣≤N|h_i| \leq N.

When i=1i=1, ∣h1∣=∣g1∣≤M≤N|h_1| = |g_1| \leq M \leq N. Note also that ∣hn∣=S≤N|h_n| = S \leq N.

Suppose ∣hi−1∣≤N|h_{i-1}| \leq N. We consider two cases:

Case (1). Suppose that among gi,⋯ ,gng_i, \cdots, g_n no two numbers have opposite signs.
Without loss of generality assume they are all non-negative, then we have hi−1≤hi≤⋯≤hnh_{i-1} \leq h_i \leq \cdots \leq h_n, and therefore
∣hi∣≤max⁡{∣hi−1∣,∣hn∣}≤N. |h_i| \leq \max\{|h_{i-1}|, |h_n|\} \leq N.

Case (2). Among gi,⋯ ,gng_i, \cdots, g_n there are both positive and negative numbers, so there exists j≥ij \geq i such that hi−1gj≤0h_{i-1}g_j \leq 0. Then by the definition of George's sequence we obtain
∣hi∣=∣hi−1+gi∣≤∣hi−1+gj∣≤max⁡{∣hi−1∣,∣gj∣}≤N. |h_i| = |h_{i-1} + g_i| \leq |h_{i-1} + g_j| \leq \max\{|h_{i-1}|, |g_j|\} \leq N.

This completes the proof by mathematical induction.

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

Source: MathNet, licensed CC-BY-4.0. Statement translated into English from zh; metadata (topic, difficulty) added by this project.