MathDB
IMO Shortlist 2014 A3

Source:

July 11, 2015
IMO Shortlistalgebraalgorithmcombinatorics

Problem Statement

For a sequence x1,x2,,xnx_1,x_2,\ldots,x_n of real numbers, we define its <spanclass=latexitalic>price</span><span class='latex-italic'>price</span> as max1inx1++xi.\max_{1\le i\le n}|x_1+\cdots +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 ii-th step he chooses xix_i among the remaining numbers so as to minimise the value of x1+x2+xi|x_1 + x_2 + \cdots 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 GcDG\le cD.
Proposed by Georgia