Maths Olympiad Prep

Library / /10 of 10

, 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
max1inx1++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
GcD.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 c2c \ge 2.

Next we prove that G2DG \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=max1inxi,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
DS,(1) D \geq S, \tag{1}
DM2, and(2) D \geq \frac{M}{2}, \text{ and} \tag{2}
GN=max{M,S}(3) G \leq N = \max\{M, S\} \tag{3}
From these three inequalities we obtain
Gmax{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++di1)d1++di+d1++di12D, \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 hiN|h_i| \leq N.

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

Suppose hi1N|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 hi1hihnh_{i-1} \leq h_i \leq \cdots \leq h_n, and therefore
himax{hi1,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 jij \geq i such that hi1gj0h_{i-1}g_j \leq 0. Then by the definition of George's sequence we obtain
hi=hi1+gihi1+gjmax{hi1,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,000 problems in a working order, from AMC 10 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.