Cím: Ordering watermelons
Szerző(k):  Imre Légrádi 
Füzet: 2003/októberi melléklet, 17 - 19. oldal  PDF  |  MathML 
Témakör(ök): Szakmai cikkek

A szöveg csak Firefox böngészőben jelenik meg helyesen. Használja a fenti PDF file-ra mutató link-et a letöltésre.

A watermelon merchant has the following obsession: In the marketplace, he always lines up his perfectly spherical watermelons along the stone bench so that each melon touches its neighbors and the points where the melons touch the bench are collinear.

 
One morning, he arrived at the marketplace with eleven spherical watermelons in his car. Before he could line up the melons in the usual way, the marketplace inspector went up to him and measured the diameters of the melons to be d1=16 cm, d2=18 cm, d3=22 cm, d4=26 cm, d5=28 cm, d6=30 cm, d7=34 cm, d8=36 cm, d9=38 cm, d10=40 cm, d11=42 cm. The inspector added up the diameters and declared that the merchant was to pay a fee for using a total length of 330 cm of the bench. The merchant did not accept this, saying that he was able to arrange his melons in a shorter line than that. Given the diameters, would the inspector please calculate the lengths of the shortest possible line of watermelons, and then he would pay for that. Pleased that the merchant also liked mathematics, the inspector agreed to calculate the shortest possible length, that is the diameter, as defined by combinatorial geometry, of the plane figure obtained by the union of the orthogonal projections of the appropriately arranged melons onto the table, provided that the merchant would prove that for the given radii r1r2r3...rn-1rn of n melons, this length is a minimum if the sum
D=(rk1-rk2)2+(rk2-rk3)2+(rk3-rk4)2++(rk4-rk5)2+...+(rkn-1-rkn)2
is a maximum; where rk1,rk2,rk3,...,rkn-1,rkn are the radii of the consecutive melons touching each other, and the indices k1,k2,k3,...,kn-1,kn denote a permutation of the numbers 1,2,3,...,n-1,n resulting in the smallest length. Let us help them.
 
Solution: For two consecutive melons in the line, the distance between their points of tangency on the bench is AB=x=2ab, where a and b are the radii of the two spheres (see the Figure 1.). Hence the length of the entire line of melons is
L=rl1+2rl1rl2+2rl2rl3+2rl3rl4+...+2rln-1rln+rln,
where rl1,rl2,rl3,...,rln-1,rln are the radii r1r2r3...rn-1rn of the melons in some order.
 

In the watermelon line of minimum length, the melons are arranged to make the above sum as small as possible.
Consider the sum of the diameters of the melons and denote it by H:
H=2(r1+r2+r3+r4+...+rn1+rn).
Subtract the sum L obtained above from H:
2(r1+r2+r3+r4+...+rn-1+rn)--(rl1+2rl1rl2+2rl2rl3+2rl3rl4+...+2rln-1rln+rln)
The difference can be written as follows:
D=H-L=rl1-2rl1rl2+rl2+rl2-2rl2rl3+rl3+rl3--2rl3rl4+rl4+...+rln-1-2rln-1rln+rln,
which is the same as
D=(rl1-rl2)2+(rl2-rl3)2+(rl3-rl4)2+...+(rln-1-rln)2.
The shortest line of melons is thus obtained by making this sum of squares a maximum. The task inflicted on the merchant by the inspector is thereby completed.
The task of the inspector, that is, finding the length of the shortest line of watermelons can be done in principle by considering all possible permutations of the 11 melons and selecting the shortest length. In practice, that would be really cumbersome, as there are 11!=39916800 permutations. This part of the problem can also be solved with the help of the sum of squares obtained above: the sum of the squares of the differences between the square roots of the consecutive radii. It follows that the neighbours of melons of large radii should be melons of small radii.
Let us, therefore, start with the largest melon placed in the middle, and let us put the two smallest melons right next to it on either side. Next to those, proceeding in both directions, let us place the two biggest of the remaining melons, followed by the two smallest that still remain, then the two biggest again and so on. Finally let us place the two medium-sized melons at the ends of the line. The procedure results in the following sequence of melons in Figure .
 

That is,
l1=6,l2=7,l3=4,l4=9,l5=2,l6=11,l7=1,l8=10,l9=3,l10=8,l11=5.L=r6+2(r6r7+r7r4+r4r9+r9r2+r2r11+r11r1++r1r10+r10r3+r3r8+r8r5)+r5=316.5283798cm.  
With this arrangement, the value of the sum
Δ=|rl1-rl2|+|rl2-rl3|+|rl3-rl4|+...+|rln-2-rln-1|+|rln-1-rln|
calculated for the whole line of melons is 79, and the sum
D=(rl1-rl2)2+(rl2-rl3)2+(rl3-rl4)2+...+(rln-1-rln)2
is 13.4716202 cm, since L+D=H.
The above reasoning does not prove that this arrangement provides the shortest line of melons. We encourage the reader to find a proof or an even shorter line of the melons ...