Päevaülesanne

Juhuslik

Harjutuskomplekt

Balti Tee 2021 · Valikvooru ülesanne

Kombinatoorika

A directed graph GG has 2021 vertices located on a circle, 101 directed edges go from each vertex of GG to the next 101 vertices in the counter-clockwise direction. We wish to colour the edges in such a way that for any two vertices uu and vv one can choose a directed path from uu to vv in which no two edges have the same colour. What is the minimum number of colours needed?

Muuda valikut

Kui oled valmis

Ülevaatematerjal muutub kättesaadavaks järgmise päevaülesannete komplektiga.

Ülevaade

Teemad

Värvimised ja konfiguratsioonid · Dirichlet’ printsiip ja ekstremaalargumendid · Graafiteooria

Lahendused

Lahendus

Answer: ⌈2021101⌉=21\lceil \frac{2021}{101} \rceil = 21 colours.

Label the vertices along the cycle: v0,v1,…,v2020v_0, v_1, \dots, v_{2020}. It is clear that the distance from v0v_0 to any of v1,…,v101v_1, \dots, v_{101} equals 1; the distance from v0v_0 to any of v102,…,v202v_{102}, \dots, v_{202} equals 2, etc. Therefore, the distance from v0v_0 to v2020v_{2020} is the longest one, it equals 20.

E.g., for each ii, 1≤i≤201 \le i \le 20, let

Vi={v101(i−1)+1,v101(i−1)+2,…,v101i}V_i = \{v_{101(i-1)+1}, v_{101(i-1)+2}, \dots, v_{101i}\}

and we colour the edges that go from vertices of ViV_i in ii-th colour. The edges that starts in v0v_0 we colour in 21-st colour. It is evident that for any two vertices viv_i and vjv_j we can choose a directed path from viv_i to vjv_j that intersects each VℓV_\ell in at most one vertex (with the only one exception: we allow viv_i and vjv_j to belong to the same set VℓV_\ell). The edges of this path have pairwise different colours.

Assume that we can colour edges in 20 colours. Then consider a path that in each step jumps from the current vertex viv_i to vi+101v_{i+101}. Here and henceforth we are considering addition modulo 2021. Since gcd⁡(101,2021)=1\gcd(101, 2021) = 1, this path is a Hamiltonian cycle CC.

For each viv_i the sub-path from viv_i to vi+2020v_{i+2020} in CC consist of 20 edges and this is the shortest path from viv_i to vi+2020v_{i+2020}. Since we have a colouring in 20 colours only, the edges of this path have 20 different colours. Thus the edge between viv_i and v(i+101)v_{(i+101)} and the edge from v(i+2020)v_{(i+2020)} to v(i+2121)v_{(i+2121)} are of the same colour. Since gcd⁡(2020,2021)=1\gcd(2020, 2021) = 1, this means that all edges in CC have the same colour, a contradiction.