Daily

Random

Practice set

Baltic Way 2025 · Problem 11

Geometry

Let A1,…,AnA_1,\ldots,A_n be a sequence of points on the Euclidean plane. Some of the points may coincide, but the sequence contains at least two distinct points. A Baltic Way is a route defined by a permutation B1,…,BnB_1,\ldots,B_n of the points A1,…,AnA_1,\ldots,A_n. The length of a Baltic Way is

∣B1B2∣+∣B2B3∣+⋯+∣Bn−1Bn∣+∣BnB1∣,|B_1B_2|+|B_2B_3|+\cdots+|B_{n-1}B_n|+|B_nB_1|,

where ∣PQ∣|PQ| denotes the Euclidean distance between points PP and QQ.

Let KK and LL be the lengths of some two Baltic Ways on the same sequence of nn points. For a given nn, determine the maximum possible value of K/LK/L over all possible sequences A1,…,AnA_1,\ldots,A_n.

Change pool

When you’re ready

Review material becomes available with the next Daily.

Review

Topics

Geometric inequalities

Solutions

Solution

The answer is

⌊n2⌋.\left\lfloor\frac n2\right\rfloor.

Number the points so that A1,…,AnA_1,\ldots,A_n is the Baltic Way of length LL. Regard this tour cyclically as a circle: AiA_i and Ai+1A_{i+1} are adjacent, AnA_n and A1A_1 are adjacent, and the indices increase clockwise.

Now consider another Baltic Way Ai1,…,AinA_{i_1},\ldots,A_{i_n}. For an adjacent pair Ai1,Ai2A_{i_1},A_{i_2} of this second tour there are two paths between the points along the first tour.

If i1<i2i_1<i_2, then going clockwise and using the triangle inequality gives

∣Ai1Ai2∣≤∣Ai1Ai1+1∣+⋯+∣Ai2−1Ai2∣,|A_{i_1}A_{i_2}| \le |A_{i_1}A_{i_1+1}|+\cdots+|A_{i_2-1}A_{i_2}|,

while going counterclockwise gives

∣Ai1Ai2∣≤∣Ai1Ai1−1∣+⋯+∣A1An∣+⋯+∣Ai2+1Ai2∣.|A_{i_1}A_{i_2}| \le |A_{i_1}A_{i_1-1}|+\cdots+|A_1A_n|+\cdots+|A_{i_2+1}A_{i_2}|.

If i1>i2i_1>i_2, then going clockwise gives

∣Ai1Ai2∣≤∣Ai1Ai1+1∣+⋯+∣AnA1∣+⋯+∣Ai2−1Ai2∣,|A_{i_1}A_{i_2}| \le |A_{i_1}A_{i_1+1}|+\cdots+|A_nA_1|+\cdots+|A_{i_2-1}A_{i_2}|,

and going counterclockwise gives

∣Ai1Ai2∣≤∣Ai1Ai1−1∣+⋯+∣Ai2+1Ai2∣.|A_{i_1}A_{i_2}| \le |A_{i_1}A_{i_1-1}|+\cdots+|A_{i_2+1}A_{i_2}|.

In either case, adding the clockwise and counterclockwise bounds gives

2∣Ai1Ai2∣≤L.2|A_{i_1}A_{i_2}|\le L.

This applies to every adjacent pair of the second tour, so summing over its nn edges gives

2K≤nL.2K\le nL.

We now use the two directed collections of inequalities more carefully. For every adjacent pair of the KK-tour, choose the clockwise path along the LL-tour and add the corresponding triangle inequalities. Because the combined directed walk ends where it starts, each edge of the LL-tour is counted the same integer number aa of times, and hence

K≤aL.K\le aL.

Doing the same counterclockwise gives

K≤bLK\le bL

for another integer bb. Taken together, the clockwise and counterclockwise paths for every edge of the KK-tour use each edge of the LL-tour exactly nn times in total, so

a+b=n.a+b=n.

Therefore

K≤min⁡(a,b)L≤⌊n2⌋L,K\le \min(a,b)L \le \left\lfloor\frac n2\right\rfloor L,

and thus

KL≤⌊n2⌋.\frac KL\le\left\lfloor\frac n2\right\rfloor.

It remains to show that equality can occur.

If n=2kn=2k is even, take

A1=⋯=Ak=(0,0),Ak+1=⋯=An=(0,1).A_1=\cdots=A_k=(0,0), \qquad A_{k+1}=\cdots=A_n=(0,1).

For the tour in index order,

L=2.L=2.

Choose the order

(i1,…,in)=(1,k+1,2,k+2,…,k,2k).(i_1,\ldots,i_n)=(1,k+1,2,k+2,\ldots,k,2k).

Every edge of this tour has length 11, so K=nK=n and

KL=n2.\frac KL=\frac n2.

If n=2k+1n=2k+1 is odd, take

A1=⋯=Ak+1=(0,0),Ak+2=⋯=A2k+1=(0,1).A_1=\cdots=A_{k+1}=(0,0), \qquad A_{k+2}=\cdots=A_{2k+1}=(0,1).

Again L=2L=2. Choose

(i1,…,in)=(1,k+2,2,k+3,…,k,2k+1,k+1).(i_1,\ldots,i_n) =(1,k+2,2,k+3,\ldots,k,2k+1,k+1).

This tour has 2k=n−12k=n-1 edges of length 11 and one edge of length 00, so K=n−1K=n-1. Hence

KL=n−12=⌊n2⌋.\frac KL = \frac{n-1}{2} = \left\lfloor\frac n2\right\rfloor.

Contest context

Results from Baltic Way 2025

11 teams

Mean score
2.4 / 5
Scores of 4 or 5
0 / 11
Estonia
2 / 5

Score distribution

00
12
23
36
40
50
All team scores
TeamScore
Germany3 / 5
Estonia2 / 5
Poland3 / 5
Lithuania3 / 5
Norway3 / 5
Latvia2 / 5
Finland3 / 5
Denmark2 / 5
Sweden1 / 5
Ukraine3 / 5
Iceland1 / 5