Unofficial archive — problems, solutions & results © IMC, reproduced with permission.

IMC / 1999 / Problems / Day 2, P11

IMC 1999 · Day 2 · P11

killer

Let SS be the set of all words consisting of the letters x,y,zx, y, z, and consider an equivalence relation \sim on SS satisfying the following conditions: for arbitrary words u,v,wSu, v, w \in S

(i) uuuuu \sim u;

(ii) if vwv \sim w, then uvuwuv \sim uw and vuwuvu \sim wu.

Show that every word in SS is equivalent to a word of length at most 8.

Solution (official)

First we prove the following lemma: If a word uSu \in S contains at least one of each letter, and vSv \in S is an arbitrary word, then there exists a word wSw \in S such that uvwuuvw \sim u.

If vv contains a single letter, say xx, write uu in the form u=u1xu2u = u_1 x u_2, and choose w=u2w = u_2. Then uvw=(u1xu2)xu2=u1((xu2)(xu2))u1(xu2)=uuvw = (u_1 x u_2) x u_2 = u_1 ((x u_2)(x u_2)) \sim u_1 (x u_2) = u.

In the general case, let the letters of vv be a1,,aka_1, \dots, a_k. Then one can choose some words w1,,wkw_1, \dots, w_k such that (ua1)w1u(u a_1) w_1 \sim u, (ua1a2)w2ua1(u a_1 a_2) w_2 \sim u a_1, …, (ua1ak)wkua1ak1(u a_1 \dots a_k) w_k \sim u a_1 \dots a_{k-1}. Then uua1w1ua1a2w2w1ua1akwkw1=uv(wkw1)u \sim u a_1 w_1 \sim u a_1 a_2 w_2 w_1 \sim \dots \sim u a_1 \dots a_k w_k \dots w_1 = uv(w_k \dots w_1), so w=wkw1w = w_k \dots w_1 is a good choice.

Consider now an arbitrary word aa, which contains more than 8 digits. We shall prove that there is a shorter word which is equivalent to aa. If aa can be written in the form uvvwuvvw, its length can be reduced by uvvwuvwuvvw \sim uvw. So we can assume that aa does not have this form.

Write aa in the form a=bcda = bcd, where bb and dd are the first and last four letter of aa, respectively. We prove that abda \sim bd.

It is easy to check that bb and dd contains all the three letters xx, yy and zz, otherwise their length could be reduced. By the lemma there is a word ee such that b(cd)ebb(cd)e \sim b, and there is a word ff such that defddef \sim d. Then we can write a=bcdbc(def)bc(dedef)=(bcde)(def)bd.a = bcd \sim bc(def) \sim bc(dedef) = (bcde)(def) \sim bd.

Remark. Of course, it is enough to give for every word of length 9 an shortest shorter word. Assuming that the first letter is xx and the second is yy, it is easy (but a little long) to check that there are 18 words of length 9 which cannot be written in the form uvvwuvvw.

For five of these words there is a 2-step solution, for example xyxzyzxzyxyxzyzxzyzyxyxzyzyxyxzy.xyxzyzxzy \sim xyxzyzxzyzy \sim xyxzyzy \sim xyxzy. In the remaining 13 cases we need more steps. The general algorithm given by the Solution works for these cases as well, but needs also very long words. For example, to reduce the length of the word a=xyzyxzxyza = xyzyxzxyz, we have set b=xyzyb = xyzy, c=xc = x, d=zxyzd = zxyz, e=xyxzxzyxyzye = xyxzxzyxyzy, f=zyxyxzyxzxzxzxyxyzxyzf = zyxyxzyxzxzxzxyxyzxyz. The longest word in the algorithm was bcdedef=xyzyxzxyzxyxzxzyxyzyzxyzxyxzxzyxyzyzyxyxzyxzxzxzxyxyzxyz,bcdedef = xyzyxzxyzxyxzxzyxyzyzxyzxyxzxzyxyzyzyxyxzyxzxzxzxyxyzxyz, which is of length 46. This is not the shortest way: reducing the length of word aa can be done for example by the following steps: xyzyxzxyzxyzyxzxyzyzxyzyxzxyzyxyzyzxyzyxzxyzyxzyxyzyzxyzyxzyxyzxyzyxyz.xyzyxzxyz \sim xyzyxzxyzyz \sim xyzyxzxyzyxyzyz \sim xyzyxzxyzyxzyxyzyz \sim xyzyxzyxyz \sim xyzyxyz. (The last example is due to Nayden Kambouchev from Sofia University.)

How the field did

contestants scored
87
average (of 20)
0.63
solved (≥ 80%)
0.0%
near-0 (≤ 10%)
89.7%
discrimination
0.41

Score distribution (field cohort)

Computed on contestants with a meaningful total (field cohort); discrimination is the corrected item–total correlation.

Similar problems

IMC 2012 · Day 2 · P10killeravg 0.0/10 · solved 0% · near-0 100% · disc 0.16
IMC 2021 · Day 2 · P8killeravg 0.0/10 · solved 0% · near-0 99% · disc 0.08
IMC 2024 · Day 2 · P9killeravg 0.2/10 · solved 1% · near-0 97% · disc 0.34
IMC 2004 · Day 2 · P12killeravg 0.2/10 · solved 1% · near-0 97% · disc 0.13