Inhaltsverzeichnis
1 Santa’s helper is in a bad mood 3 1.1 Exercise ...... 3 1.2 Solution ...... 6 2 Disguised Thieves 7 2.1 Exercise ...... 7 2.2 Solution ...... 10 3 Snowman made of glass 12 3.1 Exercise ...... 12 3.2 Solution ...... 15 4 Transportation costs 20 4.1 Exercise ...... 20 4.2 Solution ...... 22 5 The Big Reindeer Race 24 5.1 Exercise ...... 24 5.2 Solution ...... 27 6 Explosion 29 6.1 Exercise ...... 29 6.2 Solution ...... 31 7 Cookies 33 7.1 Exercise ...... 33 7.2 Solution ...... 35 8 Distributing presents in Hawaii 36 8.1 Exercise ...... 36 8.2 Solution ...... 39 9 Brain teaser 44 9.1 Exercise ...... 44 9.2 Solution ...... 46 10 The Christmas cookie dice game 47 10.1 Problem ...... 47 10.2 Solution ...... 49 11 Card game 52 11.1 Exercise ...... 52 11.2 Solution ...... 54 12 The radio competition 55 12.1 Exercise ...... 55 12.2 Solution ...... 57
2 13 Test for a job interview 59 13.1 Exercise ...... 59 13.2 Solution ...... 61 14 Deep snow 62 14.1 Exercise ...... 62 14.2 Solution ...... 64 15 Crossnumbers 66 15.1 Exercise ...... 66 15.2 Solution ...... 69 16 A secure safe 71 16.1 Exercise ...... 71 16.2 Solution ...... 74 17 Hats 76 17.1 Exercise ...... 76 17.2 Solution ...... 79 18 The dance of the elves 81 18.1 Exercise ...... 81 18.2 Solution ...... 83 19 Mondrian 87 19.1 Exercise ...... 87 19.2 Solution ...... 89 20 Mixed Doubles 91 20.1 Exercise ...... 91 20.2 Solution ...... 94 21 Raiders of the lost Santa 97 21.1 Exercise ...... 97 21.2 Solution ...... 100 22 Temperature 102 22.1 Exercise ...... 102 22.2 Solution ...... 104 23 A Christmas Crime Story 105 23.1 Exercise ...... 105 23.2 Solution ...... 108 24 Mosquito 110 24.1 Exercise ...... 110 24.2 Solution ...... 112
3 1 Santa’s helper is in a bad mood
Author: Christian Hercher
1.1 Exercise Santa’s helper is in a bad mood. “Same procedure as last year? Same procedure as every year...” *grrr*
“I’m always taking care of the naughty kids, scaring them and the old man gets all the recognition for the good kids’ gifts.” This time, everything will be different. And off he goes to Santa Claus and cries on his shoulder. “What are you suggesting?”, asks Santa. “It’s obvious! I want to switch this year!”
Of course, Father Christmas doesn’t give up his privilege so easily! “Let us play for it. The winner gets to distribute the gifts and the loser visits the naughty boys and girls.”
“Ok, and what are we playing?” answers Santa’s helper, interested. The old man explains the game he has in mind.
“In my gift bag, there are 23 red gifts and 23 blue gifts. Other than by the color, you can’t tell them apart.”
Without looking inside, you pull two gifts out of the gift bag. If they possessed different colors, you must put the red one back in. On the other hand, if they have the same color, a blue gift is added to the gift bag. (I have enough extra blue gifts that are not in the gift bag yet, so you can use them for the game.)
4 This procedure is repeated until there are no more gifts in the gift bag. The color of the last gift that you have to put back in the bag after the last pull according to our rules decides the winner of the game. If it is blue, you win. If it is red, I am declared the winner.”
The little helper ponders a little. “Why do you get to play red?” - “Because I am Santa Claus. Besides, I am the one with the red suit that all the kids love! So red is my color.” “Okay, alright! ...” he responds after giving up. “I feel like I’m being scammed, but I’ll give it a try. Let’s start!”
With what probability (rounded at multiples of 10 %) will Santa’s helper win the game and become the kids’ hero this year?
5 Possible Answers: 1.0%
2. 10 %
3. 20 %
4. 30 %
5. 40 %
6. 50 %
7. 60 %
8. 80 %
9. 90 %
10. 100 %
6 1.2 Solution Answer 1: The probability for Servant Rupert to win the game is ex- actly zero.
After every turn, two gifts are pulled out of the bag and one gift is added back in. The number of gifts in the bag thus goes down by one per turn, which means the game ends when the two last gifts are pulled out of the bag, in which case the color of the gift to put back in decides the winner.
When two gifts of different colors are pulled out, the number of red gifts in the bag doesn’t change. This is also the case when two blue gifts are pulled out since a blue gift is added back in. The number of red gifts in the bag can only change when two red gifts are taken out, but since a blue gift goes back in, the number of red gifts in the bag diminishes by exactly two.
At the beginning, there are 23 red gifts in the bag, which is an odd number. Since every step of the game removes either zero or two red gifts from the bag, the number of red gifts in the bag remains odd at each step since it was odd in the previous step.
In particular, there is always at least one red gift in the bag. This has to be the color of the last gift that has to be put back in, so Santa Claus wins for sure. The winning probability of Santa’s little helper is therefore exactly 0 %.
Note: the strategy used to solve this problem is also called “Invariance Principle”. One finds a property which remains invariant through every step of the game and gives us the solution at the last step. In this case, the invariant property is the oddness of the number of red gifts in the bag, no matter which gifts are pulled out of it.
7 2 Disguised Thieves
Author: Thomas Lütteke
2.1 Exercise Santa is furious. Since he doesn’t enjoy a good wine only when Christmas is ap- proaching, he stores a few bottles in his wine cellar. However, after the Christmas elves’ costumed Halloween party, some of his best bottles went missing. Consi- dering this is not the first time this has happened, he decided to install a video surveillance camera. To his dismay, he could not recognize the thieves on the tape because they were still costumed: one of them is dressed as an Easter bunny, the other one - and that particularly outrages him - dressed up in a Santa Claus costume! Such an enormous one on top of that, as if he had a gigantic belly. Of course, now he wants to find out who was hiding behind those costumes. Actually, he brought it down to five suspects, namely Alex, Benni, Chris, Dieter and Emil. Altogether, they were costumed as Santa, the Easter bunny, a monk, Yoda and Snow White. All five of them sat next to each other at the bar almost all night in the same order and each one of them kept drinking the same thing: one drank vodka, one took milk, one took beer, the other one had a Coca-Cola and the last one had lemonade. As suspects, all five of them made use of their right to remain silent. The other elves at the party were also questioned, but they were pretty drunk and therefore did not have much information to offer. All that Santa got out of them was the following statements:
• The tall Alex only fits into the Santa or monk costumes.
• Dieter always drinks Coca-Cola or vodka at parties.
• Either Snow White or the monk was sitting at the right end of the counter.
• The elf at the second left position drank beer or lemonade.
8 • The two elves at the right end of the counter did not drink milk.
• The Easter bunny was sitting either at the left end of the bar or exactly in the middle.
• Benni was sitting on Santa’s right and on the left of the elf who drank Coca-Cola.
• Emil was sitting to the right of the elf who drank Coca-Cola and to Snow White’s left.
• Chris did not sit in the middle seat.
• Emil is too tall to fit into the Yoda costume and he likes neither lemonade nor vodka.
• The monk did not drink milk.
Is it possible with this information to figure out the thieves’ identities, or at least reduce the number of suspects by definitely excluding individual Christmas elves?
9 Possible Answers: 1. The thieves are Alex and Chris.
2. The thieves are Benni and Dieter.
3. The thieves are Chris and Emil.
4. The thieves are Dieter and Alex.
5. The thieves are Emil and Benni.
6. Santa Claus can only identify one thief with certainty and only one more elf can definitely be excluded.
7. Santa Claus can only identify one thief with certainty and two further elves can definitely be excluded.
8. Santa Claus cannot identify any of the thieves. All he can do is definitely exclude one of the elves.
9. The information given is insufficient to convict or exonerate any of the elves.
10. The information given is contradictory, i.e. at least one piece of information must be incorrect.
10 2.2 Solution Answer 4: The thieves are Dieter and Alex.
To solve such a logic puzzle, one can set up a table where the information given from the text can be written in:
For every correct assignment (e.g. if we know that Alex is wearing the Santa costume), we put a cross (×) in the appropriate box, and for every assignment that one can exclude, we put a circle (◦). Through deductive reasoning, we must fill in this table step by step. For example, when Benni is disguised as the Easter bunny and the Easter bunny drinks beer, then Benni drinks beer. However, if the Easter bunny drinks beer and Benni doesn’t, then Benni cannot be the Easter bunny. Ideally, one can fill in the entire table via such considerations. With the information given in the text, one obtains the following table:
Costume Position Drink left right Left nd Beer Milk Yoda Santa Monk Right Vodka nd Center 2 2 Coca-cola Lemonade Snow White Easter bunny Alex ø ø ø Benni ø ø ø ø Chris ø
Name Dieter ø ø ø Emil ø ø ø ø ø ø Beer Coca-cola ø ø ø Milk ø ø ø ø
Drink Vodka ø Lemonade Left ø 2nd left ø Center 2nd right ø Position Right ø ø ø
Since we are only given information which excludes possible cases, filling the table is not entirely straightforward. From the fact that Dieter only drinks coca-cola or vodka but that the person sitting in the second seat starting from the left doesn’t drink any of these beverages, one deduces that Dieter cannot be sitting in this
11 seat. A few more boxes can be assigned a circle in this way, but it doesn’t solve the entire puzzle.
An important piece of information at this stage is the fact that Emil sat to the right of the elf who drank coca-cola. Since Emil also sat to the left of Snow White, he cannot have been at the rightmost position, but at most at the second seat starting from the right. The coca-cola drinker must then have been sitting further to the left. With the already given restrictions, only the center position remains for the cola-drinking elf, so that Emil was sitting at the second seat from the right. Starting from here, further simple properties can be assigned and the table can be completely filled: Costume Position Drink left right Left nd Beer Milk Yoda Santa Monk Right Vodka nd Center 2 2 Coca-cola Lemonade Snow White Easter bunny Alex × ø ø ø ø × ø ø ø ø ø ø ø × ø Benni ø ø ø ø × ø × ø ø ø ø ø ø ø × Chris ø ø × ø ø ø ø ø ø × ø ø × ø ø
Name Dieter ø × ø ø ø ø ø × ø ø ø × ø ø ø Emil ø ø ø × ø ø ø ø × ø × ø ø ø ø Beer ø ø ø × ø ø ø ø × ø Cola-cola ø × ø ø ø ø ø × ø ø Milk ø ø × ø ø ø ø ø ø ×
Drink Vodka × ø ø ø ø × ø ø ø ø Lemonade ø ø ø ø × ø × ø ø ø Left × ø ø ø ø 2nd left ø ø ø ø × Center ø × ø ø ø 2nd right ø ø ø × ø Position Right ø ø × ø ø
From this table it is obvious that Alex has been dressed as Santa and Dieter as Easter bunny. Therefore, answer 4 is correct.
12 3 Snowman made of glass
Author: Luise Fehlinger and Robert Jablko Project: ZE-AP1
3.1 Exercise As every child already knows, the laws of physics at the North Pole are somehow crazy. It would be otherwise impossible for Father Christmas to deliver all his presents within one night and manage to squeeze his way in through the smallest of chimneys. However, these are not the only crazy things at the North Pole. When an object is reflected in a sphere there, the following “North Pole reflection law” holds: −−→ The reflection point P 0 lies on the half-line MP r and the following equation determines its position: |MP | · |MP 0| = r2. M P 0 P
This year, Hugo the elf wants to build a snowman made out of hollow glass spheres. He starts with a small (radius r1), a medium (radius r2) and a large sphere (radius r3). From the medium-sized sphere, he cuts off a cap and glues the small sphere in the resulting hole. Then he cuts a cap from the large sphere and glues the medium sphere in it.
13 His glass spheres are translucid, but they also reflect light. There- fore, one can see not only the part of the small sphere which lies in the medium one, but also its reflection in the other spheres and the reflections of its reflections. However, the reflections of the reflec- tions of a reflection are becoming a bit blurry, so they are sort of invisible to the naked eye. Thus Hugo’s snowman really looks like a cloud of spheres. Is there a better way? So Hugo asks his colleagues to help him. How should he build his snowman so that there are as few visible reflections as possible? If possible, the corresponding reflections should lie exactly where the caps were cut off on the existing spheres. The elves come up with many good ideas for conditions satisfied by an optimal snowman. However, one of them is mistaken. Which one?
14 Possible Answers: 1. Elf Cornelius: “The spheres which cut each other must cut each other or- thogonally, so that the radii of the two meeting spheres intersect perpendi- cularly in their intersection points.”
2. Elf Yolanda: “The circle of intersection between two spheres cutting one another lies on the sphere which has as its diameter the line segment bet- ween the centers of the two glass spheres.”
3. Elf Otis: “The distance between the centers of the small and large spheres p 2 2 2 must be equal to r1 + 2r2 + r3.” 4. Elf Milena: “There will always be at least two visible reflections which do not lie completely on the glass spheres.”
5. Elf Julian: “There will always be at least four visible reflections which do not lie completely on the glass spheres.”
6. Elf Lotta: “It is possible to build the snowman so that at most six reflections do not lie completely on the spheres.”
7. Elf Mattie: “To drill the hole in the middle sphere, a drill with a diameter q 2 2 r1·r2 of 2 2 2 is required.” r1+r2 8. Elf Noam: “The square of the radius of the circle of intersection between two spheres cutting each other equals the reciprocal of the sum of the squares of the reciprocals of the radii of the two spheres.”
9. Elf Yves: “If we were to cut off a cap from the medium sphere with a laser, the angle that the laser must do with the tangent plane of the sphere at the point where one starts cutting has to be arctan r1 .” r2 10. Elf Alva: “If the cap of the middle sphere is to be cut using an electric cir- 1 cular saw (decorated with diamonds) with the help of a guide√, the distance 2 2 2 2 r1+r2−r2 r1+r2 between the guide and the saw should be equal to r2 2 2 .” r1+r2
1One carries the sphere along the guide parallel to the circular saw.
15 3.2 Solution Answer 3: The following statement is false: “The distance between the p 2 2 2 centers of the small and large spheres must be equal to r1 + 2r2 + r3.”
In each case, we consider a slice through the center points of the spheres.
M1 r1 Intersection S12
r2 M2
S23
r3 M3
Cornelius We show that this statement is equivalent to that of Yolanda’s. When we have shown this, we will know that both statements are correct, other- wise there would be at least two incorrecct statements but we know that precisely one elf is wrong.
We consider the triangle with the vertices M1 (center point of the small sphere), M2 (center point of the medium sphere) and S12 (a point of inter- section between the small and medium spheres). The line segment M1S12 is a radius of the small sphere and M2S12 is a radius of the medium sphere. When Cornelius’ statement is correct, these two radii intersect perpendicu- larly. By Thales’ theorem, this is equivalent to the statement that the point S12 lies on the circle with diameter M1M2. We deduce that both statements are equivalent and thus correct. Remark: Two spheres which, via reflection, map into themselves, must in- tersect perpendicularly.
Proof: Let K1 be the circle of the small sphere in our transversal cut dia- gram above and K2 the circle of the medium sphere. Let P ∈ K1 be an 0 arbitrary point on the small sphere. Let P = IK2 (P ) be the point P reflec- ted by the medium sphere. By definition of the North Pole reflection law,
16 2 0 |M2S12| = |M2P | · |M2P |.
M2S12 is a radius of the medium sphere. When the small and medium sphe- re intersect perpendicularly, the segment M2S12 becomes a radius for the medium sphere and a tangent for the small sphere simultaneously. Fur- 0 thermore, the segment M2P is a secant through the small sphere and P lies on this secant line segment. By the tangent-secant theorem on a circle, 2 |M2S12| = |M2Pe|·|M2P |, where Pe is the second intersection point of the se- 0 cant M2P with K1. But the points P and Pe coincide since they both satisfy this equation and lie on the half-line from the point M2 through P . There- 0 fore, the point P lies on the sphere K1. This means that when two circles
K1,K2 intersect perpendicularly, then IK2 (K1) ⊂ K1 and IK1 (K2) ⊂ K2.
Conversely, when two spheres map into themselves by reflection, they inter- sect perpendicularly. To see this, we consider the lines M1S12 and M1M2. The line through the center points of the spheres cuts K2 in the points P 0 0 and P , where P lies closer to M1 than P . Since IK1 (K2) = K2 holds, we 0 see that IK1 (P ) = P and therefore
2 0 2 2 r1 = |M1P | · |M1P | = |M1M2| − r2. | {z } | {z } =|M1M2|−r2 =|M1M2|+r2
By the converse of Pythagoras’ theorem, M1S12 and M2S12 meet perpendi- cularly.
Yolanda We have just shown that this statement is correct.
Otis We already know that Cornelius’ statement is correct. We deduce that the triangles ∆M1S12M2 and ∆M2S23M3 are right triangles, where M3 is the center point of the large sphere and S23 is a point of intersection between the medium and large spheres. Therefore, Pythagoras’ theorem applies.
We obtain: |M1M3| = |M1M2| + |M2M3| S.d.P. p 2 2 p 2 2 = r1 + r2 + r2 + r3 p 2 2 2 6= r1 + 2r2 + r3, since otherwise,
p 2 2 p 2 2 p 2 2 2 r1 + r2 + r2 + r3 = r1 + 2r2 + r3 2 2 p 2 2p 2 2 2 2 2 2 2 =⇒ r1 + r2 + 2 r2 + r3 r1 + r2 + r2 + r3 = r1 + 2r2 + r3 p 2 2p 2 2 =⇒ 2 r2 + r3 r1 + r2 = 0.
17 This statement is thus false since all radii are positive. Otherwise, the snow- man would be just a point.
Elf Otis’ statement was incorrect.
Milena The North Pole reflection is a circle inversion. Applying this reflection by the same sphere twice, the doubly reflected sphere becomes the original sphere. When inverting the medium sphere using the small sphere, the in- tersection points between the two are fixed points. In the best case scenario, the medium sphere maps to itself when reflecting along the small sphere, but the part lying on the outer part of the small sphere is reflected in the inner part and vice-versa. The large sphere will also be reflected by the small sphere. It has intersection points together with the medium sphere but differs from it at all other points. This also holds for the reflected large sphere, which means the reflection of the large sphere by the small sphere intersects the medium glass sphere but doesn’t coincide with it. However, the reflection can also not be equal to the small sphere since when perfor- ming reflection by the small sphere, only points on the small sphere are reflected on the small sphere. Therefore, the reflection of the large sphere does not lie within one of the other spheres. Analogously, the same reasoning holds for the reflection of the small sphere by the large sphere. Thus, the statement is correct.
Julian We already know that the reflection of the small sphere by the large sphere (denoted by B13) and the reflection of the large sphere by the small sphere (denoted by B31) do not lie completely within one of the glass sphe- res. The reflection B13 lies within the large sphere, so the reflection of B13 by the small sphere must lie inside B31 and therefore does not lie entirely on a glass sphere. Analogously, the reflection of B31 by the large sphere lies inside B13 and therefore not completely on a glass sphere. The statement is correct.
Lotta When two spheres intersect perpendicularly, one maps by reflection by the other to itself and vice-versa. When we repeat this reflection twice, the second reflected image is equal with the original sphere we reflected. Note that inversions on a circle are angle-preserving.
The glass spheres will be reflected as follows. The symbols K1,K2 and K3
denote the small, medium and large spheres respectively and IK1 ,IK2 and
IK3 are the reflections with respect to the small, medium and large spheres respectively.
18 IK1 K1 −→ K1 for the second reflection, see below IK2 K1 −→ K1 for the second reflection, see below IK3 K1 −→ B13 and B13 intersects K2 perpendicularly IK1 K2 −→ K2 IK2 K2 −→ K2 IK3 K2 −→ K2 IK1 K3 −→ B31 and B31 intersects K2 perpendicularly IK2 K3 −→ K3 IK3 K3 −→ K3 IK1 B13 −→ IK1 (B13) lies inside of B31 IK2 B13 −→ B13 IK3 B13 −→ K1 IK1 B31 −→ K3 IK2 B31 −→ B32 IK3 B31 −→ IK3 (B31) lies inside of B13 This list contains all reflections and reflections of reflections, which means that when K1 and K2 (resp. K2 and K3) intersect perpendicularly, there are exactly four distinct reflections not lying completely on one of the glass spheres. The statement is therefore correct (and could even be sharpened). Mattie The diameter of the drill must be twice the height h of the triangle ∆M1S12M2. By the height formula for a right triangle (where the altitude of height h splits the hypothenuse of the triangle in segments of length p and q), we have h2 = pq. With the theorem on the altitudes of a right triangle and Pythagoras’ theorem, we obtain q q 2 2 2 2 2 2 p · r1 + r2 = r1 and q · r1 + r2 = r2.
q 2 2 r1·r2 With these, we obtain 2h = 2 2 2 . r1+r2 Therefore, the statement is correct.
q 2 2 r1·r2 Noam We already have the diameter of the circle of intersection, which is 2 2 2 . r1+r2 2 2 2 2 r1·r2 r1+r2 Therefore, the square of its radius equals 2 2 . Its reciprocal equals 2 2 = r1+r2 r1·r2 1 1 2 + 2 . r2 r1
19 The statement is thus correct.
Yves The angle of intersection equals the angle between the altitude from S12 down to the line segment M1M2 (meeting the hypotenuse of the triangle ∆M1S12M2 at a point which we denote by H) and the line through M1 and S12. The triangles ∆M1S12H and ∆M1M2S12 are similar since the pair of angles they share on the side M1S12 coincide. Therefore, the desired angle equals arctan r1 . r2 The statement is thus correct.
Alva The distance a between the guide and the circular saw is equal to the radius of the medium sphere minus the length of the line segment q which completely lies within the medium sphere. To compute it, we use the height formula for a right triangle and Pythagoras’ theorem:
r2 r2 q = 2 = 2 c p 2 2 r1 + r2 and by re-arranging a little,
a = r2 − q 2 r2 = r2 − √ r2+r2 1 2 r2 = r2 1 − √ r2+r2 √ 1 2 2 2 r1+r2−r2 = r2 √ r2+r2 1 √2 2 2 2 2 r1+r2−r2 r1+r2 = r2 2 2 r1+r2 We see that this answer is also correct.
20 4 Transportation costs
Author: Sabiene Zänker
4.1 Exercise Saint Nicholas was sitting with satisfaction at his desk, looking out the window at the magnificent snowy landscape and sipping his hot chocolate with rum. He is pondering. “How nice that Christmas went so smooth this year. I can finally have a weekend to myself with no problems.” That thought didn’t last long. The phone rings! The gingerbread delivery coor- dinator is calling. “Hey Rupert! How are you doing?” “I got a problem on my hands! I absolutely need your help! We just got a very lucrative contract yesterday. Can you imagine? Normally I would decline it, but with this demand, we could become famous! I would need a specialist like your nephew Willibald, he could compute the transporting costs with us like last time. It’s urgent, I need him this weekend! Long story short, here is the problem: Our gingerbread factory would like to supply in bulk the cities of Aspels, Bum- merang and Cesaria. We have two delivery warehouses, one in Ostopus and one in Westintrigen. The transportation costs, the quantities in stock and the cities’ demands are listed in the table that I just e-mailed to you. Warehouse Transportation costs in ¤/palette Stock ABC O 40 20 10 600 W 20 10 30 400 Demand (palettes) 200 500 300 1000
How should we supply them in order to keep the transportation costs to a mi- nimum? My main concern is to know the optimal cost of the operation. Please, you can surely be of assistance!” “This is your lucky day! Willibald comes to visit me in an hour. I’ll talk to him. I think it’s going to work out! Willibald will come over to see you!”
21 “Thanks, see you later!”
Possible Answers: 1. 12000 ¤
2. 14000 ¤
3. 15000 ¤
4. 16000 ¤
5. 17000 ¤
6. 17500 ¤
7. 18000 ¤
8. 19000 ¤
9. 20000 ¤
10. 21500 ¤
22 4.2 Solution Answer 3: The minimal transportation costs are 15000 Euros.
The table with the information concerning the transportation costs, the quanti- ties in stock and the cities’ demands will be used to define the variables.
Warehouse Transportation allocation in palettes Stock ABC O a0 b0 c0 = 600 − a0 − b0 600
W aw = 200 − a0 bw = 500 − b0 cw = a0 + b0 − 300 400
Demand (palettes) 200 500 300 1000
All the variables a0, b0 , c0, aw, bw and cw are non-negative. Therefore, this implies the following additional conditions:
(1) a0 + b0 ≤ 600 (2) a0 ≤ 200 (3) b0 ≤ 500 (4) a0 + b0 ≥ 300 The transportation costs should be minimized, so the variables are determined by the above given information and with the help of the equations in the table defining the variables, they can be simplified as follows:
(5) K = 40a0 + 20aw + 20b0 + 10bw + 10c0 + 30cw and ∗ −4 (6) K = 40a0 + 30b0 + 600 and (7) K0 = 3 a0. Using the following diagram, it becomes relatively easy to compute the cheapest method of gingerbread delivery from the warehouses O and W to the cities A,B and C.
23 The results are once again summarized in a table. ABC O 0 300 300 W 200 200 0
We can now compute the minimal transportation costs as follows: Km = 20 · 300 + 10 · 300 + 20 · 200 + 10 · 200 = 15000
Thus, the gingerbread factory must pay 15000 ¤ for the delivery. Answer #3 is correct.
24 5 The Big Reindeer Race
Authors: Heide Hoppmann and Kai Hennig Project: B-MI3
5.1 Exercise It’s the day after Christmas and Santa Claus is taking a walk through a beautiful winter landscape after a stressful Christmas night. The polar lights sparkle above the north pole, the snow flakes are falling slowly to the ground and are crunching softly under the weight of Santa’s heavy black boots. All of a sudden, this pea- ceful silence is being disturbed by loud shoutings coming out of the reindeer shed.
Father Christmas’ nine reindeer, who are propelling Santa’s heavy sledge and its countless gifts every year, were arguing furiously. As Santa Claus entered the shed, the reindeer Dancer, Dasher, Prancer, Vixen, Comet, Cupid, Donner, Blitz, and last but not least Rudolph, all with their reddened cheeks (and Rudolph with his red nose, of course!) were facing each other, huffing from exhaustion. “I am by far the fastest reindeer in the world!” says Rudolph, saturated with pride. “You are the fastest one? Are you kidding me? Every year I have to slow down so you can have a chance to catch up at all!”, shouts Comet back at Rudolph. “It’s a miracle that we still manage to get the presents to all children in time the way you keep slowing us down!” adds Dancer while shaking his head in a resigning fashion. “That’s the best one so far. WE slow you down? You are so slow I heard someone calling you a “rein-oh-dear”!” laughed Cupid looking at Dancer. “Ho, ho, ho, guys. Relax. It’s the same thing every year!”, says Santa in his deep laughing voice, trying to calm down the reindeer. “I think it is time to settle this discussion once and for all. What would be better suited for that than a racing competition to determine fair and square who among you is the fastest?”
25 Santa suggests the following rules for the competition: Each reindeer runs exactly one race against every other reindeer. Each race consists of three laps around the shed. For every lap a reindeer finishes in front of his opponent, he is awarded one point (equipped with the latest technology, we can always determine the reindeer in the lead after each lap). If a reindeer manages to be in the lead for all three laps, it is awarded an extra point. After all races are finished, the ranking of the reindeer is determined by the amount of points they managed to collect. If two or more reindeer have the same amount of points, their order is drawn, i.e. a fair lottery is held.
Exactly one of the following statements concerning the Big Reindeer Race is incorrect. Which one is it?
26 Possible Answers: 1. Before the competition starts, Buddy the Christmas elf has to determine the order in which the races are held. However, he is struggling since there are more possible sequences of the races than the number of atoms in Santa Claus’s body (which is approximately 7 · 1027).
2. It is impossible that a reindeer finishes the competition with 31 points.
3. If a reindeer finishes with more than 31 points, the other reindeer have at most 28 points.
4. The sum of the points of all reindeer together is at least 108.
5. The sum of the points of all reindeer together is less than 145.
6. If a reindeer wins a majority of the rounds in each of its races, it finishes with at least 16 points.
7. It is possible to win the competition with 12 points.
8. Even 29 points does not guarantee the first place.
9. If a reindeer manages to collect at least 17 points, it cannot finish last.
10. Rudolph is Buddy’s favourite competitor. He believes that Rudolph will win all rounds in all of his races. Assume that this really happens. In this case, it is possible for a reindeer to finish last with 14 points.
27 5.2 Solution Answer 10: If Rudolph wins all rounds in each of his races, no reindeer can finish last with 14 points.
In order to prove that statement 10 is incorrect while the other nine statements are correct, we first make some easy observations: First, we see that we can model the competition as a league with nine participants playing in single round robin mode (i.e. each participant faces the other exactly ones).
• There are 9 participants.
• Each participant runs in 8 races.
9·8 • 8 + 7 + ··· + 1 = 2 = 36 races are being held. • Each race A vs. B ends with 4:0, 2:1, 1:2, or 0:4 points.
• In each race at least 3 points and at most 4 points are awarded in total.
Next, we prove the correctness of statements 1.) - 9.) and why 10.) is incorrect:
1. There are 36 races. The number of sequences is 36! (speak: 36 factorial) and 36! > 7 · 1027.
2. If a reindeer wins all of its races by 4:0 points it collects 8 · 4 = 32 points in total. If it fails to win 4:0 in only one race, it can collect at most 2+7·4 = 30 points in total. Therefore, it is not possible to finish the competition with 31 points.
3. Considering 2.), the only possibility to earn more than 31 points is to win all races by 4:0, i.e. to finish with 32 points. Hence, if reindeer A wins all of its races by 4:0, this implies that all other reindeers collect 0 points in their race against A. Hence, they can win at most 4 points in each of their remaining seven races and finish with at most 0 + 7 · 4 = 28 points total.
4. In each race at least 3 points are awarded. There are 36 races. Hence, there are at least 3 · 36 = 108 points awarded in total.
5. In each race at most 4 points are awarded. There are 36 races. Hence, there are at most 4 · 36 = 144 points awarded in total.
6. To win a majority of the rounds in a race means that a reindeer wins at least two rounds in each of its races. For each of these rounds a point is awarded, and therefore it collects at least 8 · 2 = 16 points total.
28 7. In order to win the competition with 12 points, all other reindeers are allowed to have at most this amount of points, too. Hence, the total number of points in such a scenario can be at most 9 · 12 = 108. Considering 4.), 108 is the smallest amount of points possible and it implies, that all races finish with 2:1 or 1:2 and all reindeers have 12 points after the competition ends. Such a result is possible, as the following example shows: 1 2 3 4 5 6 7 8 9 P 1 2 2 2 2 1 1 1 1 12 2 1 2 2 2 2 1 1 1 12 3 1 1 2 2 2 2 1 1 12 4 1 1 1 2 2 2 2 1 12 5 1 1 1 1 2 2 2 2 12 6 2 1 1 1 1 2 2 2 12 7 2 2 1 1 1 1 2 2 12 8 2 2 2 1 1 1 1 2 12 9 2 2 2 2 1 1 1 1 12 108 Here, entry (i,j) is the number of points that reindeer i ∈ {1 ... 9} won against reindeer j ∈ {1 ... 9}. 8. Assume reindeer A and B both collect 4 points against all the other seven reindeers. Additionally, A wins against B with 2:1 points. In this case, A has exactly 2 + 7 · 4 = 30 points while B has exactly 2 + 7 · 4 = 29 points. Hence, B does not win although he has 29 points. 9. Assume a reindeer finishes last with 17 points. This implies, that all other reindeers have at least this amount of points, too. Hence, the sum of all points must be bigger than 9 · 17 = 153, but this contradicts 5.). Hence, you cannot finish last with 17 points. 10. First, we exclude Rudolph from the competition and consider a league with 8 participants (this can be done, since the other eight reindeers all score 8·7 0 points against Rudolph). In the remaining 7 + 6 + ··· + 1 = 2 = 28 races a total of at most 28 · 4 = 112 can be awarded. In particular, this amount of points can only be distributed if all races end 4:0 or 0:4. Now, in order to finish last with 14 points, all other reindeers must have at least this amount of points, too. Hence, a total of 8 · 14 = 112 points have to be distributed. But as shown above, in order to reach this amount of points, all races have to end 4:0 or 0:4. Hence, all reindeers finish with an amount of points divisible by 4 implying that in order to finish last with 14 points, all other reindeers would have to have 16 points. But this violates the upper bound of 112 points and hence, you cannot finish last with 14 points.
29 6 Explosion
Author: Cor Hurkens (TU Eindhoven)
6.1 Exercise Today, there was an explosion in Santa Claus’ chemistry lab, in which several elves’ beards were burned. The elves Atto, Bilbo, Chico, Dondo, Espo, Frodo, Gumbo, Harpo, Izzo and Jacco nervously explained to Santa what just happened to them over the phone. Unfortunately, they got so upset by the explosino that only one of them was able to give an accurate statement. Who is telling the truth?
30 Possible Answers: 1. Atto says: If both Jacco and I burnt our beards, then either Frodo or Kuffo lost his beard as well. 2. Bilbo says: If both Mirko and I burnt our beards, then either Kuffo or Nemmo lost his beard as well. 3. Chico says: If both Puzzo and I burnt our beards, then either Harpo or Nemmo lost his beard as well. 4. Dondo says: If both Loco and I burnt our beards, then either Gumbo or Nemmo lost his beard as well. 5. Espo says: If both Onno and I burnt our beards, then either Atto or Jacco lost his beard as well. 6. Frodo says: If both Chico and I burnt our beards, then either Bilbo or Mirko lost his beard as well. 7. Gumbo says: If both Onno and I burnt our beards, then either Chico or Puzzo lost his beard as well. 8. Harpo says: If both Bilbo and I burnt our beards, then either Dondo or Izzo lost his beard as well. 9. Izzo says: If both Gumbo and I burnt our beards, then either Espo or Onno lost his beard as well. 10. Jacco says: If both Dondo and I burnt our beards, then either Dondo or Kuffo lost his beard as well.
Reminder: A statement of the form “If X, then Y ” is incorrect if X is true and at the same time, Y is false. In all three remaining cases (X and Y both true; X and Y both false; X false and Y true) the statement is correct. A statement of the form “Either X or Y ” is incorrect only when both X and Y are true or both X and Y are false.
31 6.2 Solution Answer 4: Dondo says the truth.
A statement of the form “If both α and β burned their beards, then either γ or δ burned his beard as well” is true precisely in one of the following three cases:
(i) α didn’t burn his beard
(ii) β didn’t burn his beard
(iii) Exactly one elf from γ und δ has burned his beard.
Furthermore, we introduce the following notation: A stands for “Atto burned his beard”, B stands for “Bilbo burned his beard” and C,D,E, . . . ,P stand for the analogous statements about Chico, Dondo, Espo, . . . , Puzzo.
• If B is false, then Bilbo and Harpo both tell the truth; thus B must be true. • If C is false, then Chico and Frodo both tell the truth; thus C must be true. • If D is false, then Dondo and Jacco both tell the truth; thus D must be true. • If G is false, then Gumbo and Izzo both tell the truth; thus G must be true. • If J is false, then Atto and Jacco both tell the truth; thus J must be true. • If O is false, then Espo and Gumbo both tell the truth; thus O must be true.
To summarize: The six statements B,C,D,G,J,O are true.
• If A is false, then Atto tells the truth (since the if-part of his statement is false). But then Espo also tells the truth (since the then-part of his statement is true). Therefore A must be true. • If E is false, then Espo (if-part is false) and Izzo (then-part is true) tell the truth, so E must be true. • If I is false, then Izzo (if-part is false) and Harpo (then-part is true) tell the truth, so I must be true. • If M is false, then Bilbo (if-part is false) and Frodo (then-part is true) tell the truth, so M must be true. • If P is false, then Chico (if-part is false) and Gumbo (then-part is true) tell the truth, so P must be true.
To summarize: The five statements A,E,I,M,P are also true.
32 • If F and K are both false, then Frodo and Jacco tell the truth, which is impossible. If F is true and K is false, then Atto and Jacco tell the truth, impossible. If F is false and K is true, then Atto and Frodo tell the truth, impossible. Therefore F and K are both true. • If H and N are both false, then Bilbo and Harpo tell the truth, which is impossible. If H is true and N is false, then Bilbo and Chico tell the truth, impossible. If H is false and N is true, then Chico and Harpo tell the truth, impossible. Therefore H and N are both true.
All in all, we now know that the statements A,B,C,D,E,F,G,H,I,J,K, M,N,O,P are true; only the truth of statement L remains open. Since the elves Atto, Bilbo, Chico, Espo, Frodo, Gumbo, Harpo, Izzo and Jacco were confused and made false statements, the elf Dondo must have told the truth. Therefore L is false, hence answer #4 is correct.
33 7 Cookies
Authors: Cor Hurkens (TU Eindhoven) Rudi Pendavingh (TU Eindhoven)
7.1 Exercise The Grinch and Servant Rupert are sharing 205 Christmas cookies among them- selves. The sharing process involves multiple rounds. At the start of each round, Rupert picks a number of his choice of (not yet assigned) cookies and places them on a plate. After that, it is up to the Grinch to decide who gets the cookies on the plate; either they all go to the Grinch, or they all go to Rupert. This process is repeated until all cookies have been assigned. The process also ends once one of the two has been assigned the contents of twelve plates. In this case, all the remaining cookies go to the other person, that is, the one who has received up to now no more than eleven plates. Each round, the Grinch and Servant Rupert try to make the decision which gives them the most cookies. What is the maximum number of cookies that Rupert can secure for himself?
34 Possible Answers: 1. 95 cookies 2. 96 cookies 3. 97 cookies 4. 98 cookies 5. 99 cookies 6. 100 cookies 7. 101 cookies 8. 102 cookies 9. 103 cookies 10. 104 cookies
35 7.2 Solution Answer 3: Servant Rupert gets 97 cookies and the Grinch gets 108 cookies; note that 97 + 108 = 205.
The following strategy guarantees the Grinch at least 108 cookies: “Every plate with at most 8 cookies goes to Servant Ruprecht, and every plate with at least 9 cookies goes to the Grinch.”
With this strategy, if the Grinch gets 12 plates, he obtains at least 12 · 9 = 108 cookies; if he were to get 11 or less plates, this means Servant Ruprecht got at most 12 plates, which gives him at most 12·8 = 96 cookies, hence leaving at least 205 − 96 − 109 cookies for the Grinch.
On the other hand, Servant Ruprecht can secure at least 97 cookies for himself if he puts 9 cookies on the first 22 plates. With this strategy, if the Grinch takes 12 of those plates, Servant Ruprecht receives the remaining 205 − 12 · 9 = 97 cookies. If the Grinch takes at most 11 of those plates, then Servant Ruprecht gets at least 11 of these plates, giving him at least 11 · 9 = 99 cookies.
36 8 Distributing presents in Hawaii
Authors: Jan Hackfeld, Julie Meißner, Miriam Schlöter Project: Design and Operation of Infrastructure Networks under Uncertainty; DFG SPP 1736 „Algorithms for Big Data“.
8.1 Exercise Santa Claus almost completed his plan how to deliver all his presents on the night of December 24th just a few days before Christmas. Every year, he starts on the Fiji Islands and then continues distributing presents in all time zones until he reaches the last families on Hawaii. The missing bit of his tour concerns one skyscraper, where three families whom he wants to visit live. Santa explains to Rudolph: “This house really makes me scratch my head! I lost the paper where I noted when the last member of each family arrives at home. All I remember is that they all arrive at some time between midnight and 2:30 in the morning. As they all take the bus, they will arrive at a multiple of 10 minutes after midnight and then immediately go to bed.
Floor Alani 1st floor Olina 6th floor Malu 9th floor
We have to land and take off on a balcony on the 5th floor, as this is where the only access to the ventilation duct is. However, the duct is so narrow that I need 5 minutes to crawl from one floor to the next. What is the best strategy for me to distribute the presents to every family while they’re all asleep? This will determine when we can start our Christmas night party on the Hawaiian beach!" Rudolph is puzzled for a while, but then his nose begins to shine and he suggests the following: “So, you need 5 minutes to crawl from one floor to the next. You can also distribute the presents to the stockings of every family so quickly that
37 we can neglect this time. Furthermore, you can hear when someone comes home by bus from anywhere in the duct, which can only occur every ten minutes. Unfortunately, you don’t currently know when they arrive because the piece of paper on which you wrote that down is lost. Thus you need to take decisions before knowing when Alani, Olina, and Malu arrive at home. Let’s call a strategy reacting to the times when they arrive a strategy-without-prior-information. To evaluate the quality of our strategy-without-prior-information, we can compa- re it to the time when we could leave from the 5th floor if you hadn’t lost the note and you knew the arrival times of the three people. In this case we can describe an optimal strategy-with-prior-information and compute for given arrival times the best route through the ventilation duct, such that you finish distributing all presents as early as possible. The difference between the departure time of a strategy-without-prior-information and a strategy-with-prior-information should be as small as possible, even in the worst case scenario of the three families’ arrival times.” Santa Claus and Rudolph observe several things about an optimal strategy- without-prior-information. Which of their following observations is incorrect?
Possible Answers: 1. It is an optimal strategy to land at midnight on the balcony of the 5th floor. 2. If Alani and Olina arrive first and at the same time, then Santa shouldn’t immediately crawl to the 6th floor. 3. Even if Olina arrives at home at least 50 minutes after Alani and Malu, any optimal strategy-without-prior-information ends 20 minutes later in
38 the worst case than an optimal strategy-with-prior-information.
4. If all three arrive at 2:30 in the morning, there is an optimal strategy- without-prior-information, that finishes at the same time as any optimal strategy-with-prior-information
5. If no one has arrived by 0:30, then Santa must still be in the 5th floor at 0:30.
6. There is a strategy-without-prior-information for Santa such that he can take off from the 5th floor at most 20 minutes after every optimal strategy- with-prior-information.
7. After Santa Claus has distributed the presents on the 9th floor, he must not wait on the 6th floor for Olina or Alani to return home.
8. No matter when Alani, Olina and Malu arrive at home exactly, Santa can assume he will be gone from the 5th floor by 3:30.
9. If Alani arrives at least an hour after Malu, there is an optimal strategy- without-prior-information for Santa such that he can leave from the 5th floor at the same time as with an optimal strategy-with-prior-information.
10. If Alani returns home an hour before Malu, then Santa can take off by 2:50 at the latest.
Connection to the project: In discrete optimization, we study algorithms to find an optimal solution among a huge, but usually finite, set of solutions. You can solve this problem of the Christmas calendar with pen and paper. For a large number of floors and fami- lies, however, we would only be able to solve it with suitable algorithms on a computer. A particular challenge is the fact that in this problem, Santa needs to take decisions without knowing all information about the arrival times. The part of discrete optimization studying such problems is called Online Optimiza- tion and what we call a strategy-without-prior-information is referred to as an online algorithm. In Online Optimization, we search for good algorithms solving problems where decisions have to be taken with partial information, even though these decisions influence the quality of the final solution. In the project that in- spired us to design this problem, we studied algorithms for elevators, which could be used to operate industrial elevators that sort products n a tall shelf. Bemerkungen: Bitte nicht am 7.12. oder 15.12.
39 Malu 9
20
8 minutes
7 minutes
20 5
Olina 6 min.
min. 40 5 5 minutes
20 4 minutes
minutes 40 3 minutes
2 20
Alani 1
Abbildung 1: Possible strategies for Santa Claus
8.2 Solution Answer 9: The following statement is false: “If Alani arrives at least an hour after Malu, there is an optimal strategy-without-prior-information for Santa such that he can leave from the 5th floor at the same time as with an optimal strategy-with-prior-information.”
In a strategy-with-prior-information, there are two possible routes on which San- ta Claus can crawl through the duct. He can either follow the blue or the red route (see figure 1). When following the blue route, Santa Claus first visits Ala- ni’s family on the first floor, then crawls to the 9th floor to visit Malu’s family and finally crawls back to the 5th floor. When crawling without interruption, the whole blue route takes 80 minutes. However, it can happen that Santa Claus has to wait during his tour for one family member to return home before he can distribute the presents for that family.
Alternatively, Santa Claus can follow the red route. Here, he first visits Malu’s family on the 9th floor, then crawls to the first floor to distribute the presents for Alani’s family and finally goes back to the 5th floor. If Santa hasn’t already visited Olina’s family on his tour, he now has to crawl to the 6th floor and back to the 5th floor before he can take off to the Hawaiian beach.
The following strategy is one possible optimal strategy-with-prior-information: If Malu arrives home before Alani, Santa Claus decides to take the red route. In all other cases, he takes the blue route. On the red route, Santa Claus distributes the presents for Olina’s family immediately if Olina has already arrived at home when he passes by the 6th floor. Otherwise, he does the following: while on the red route and on the way to Alani’s family, Santa Claus passes by the 6th floor.
40 If Olina arrives home at least 30 minutes before Alani, Santa waits for Olina on the 6th floor and distributes the present to Olina’s family before proceeding towards Alani’s family. Otherwise, Santa Claus crawls towards Alani’s family wi- thout waiting and visits Olina’s family at the end of his tour.
Our strategy-without-prior-information tries to imitate this strategy-with-prior- information. Santa Claus waits on the 5th floor until he notices that Alani or Malu has returned home. If Alani returns home before or at the same time as Malu, Santa Claus immediately crawls to the first floor and follows the blue rou- te. Otherwise, he follows the red route. On the red route, he passes the 6th floor without waiting for Olina in case she hasn’t returned home yet.
In an optimal strategy-with-prior-information, Santa Claus leaves the 5th floor exactly 20 minutes before Malu or Alani return home in order to be able to distribute the presents exactly when they arrive home. In our strategy-without- prior-information, Santa does not leave the 5th floor before one of the family members has arrived home. Thus, he starts with a delay of 20 minutes compared to the strategy-with-prior-information. This delay of 20 minutes could increa- se when Santa Claus follows our strategy-without-prior-information because he might have to interrupt his tour to wait until a family returns home or because he takes the red route and has to take the detour to visit Olina’s family at the end. We will now argue that this does not happen: when following our strategy- without-prior-information, Santa Claus will always be able to take off from the 5th floor at most 20 minutes after an optimal strategy-with-prior-information.
If Santa has to wait for a family member to return home when following our strategy-without-prior-information, he also would need to wait for this family member when following the optimal strategy-with-prior-information. Thus, in this case Santa Claus is even able to catch up with the optimal strategy-with- prior-information.
If Santa follows the red route and has to visit Olina’s family at the end of his tour, then Olina comes home after Santa has passed by the 6th floor when proceeding towards Alani’s family. In the optimal strategy-with-prior-information, Santa also would have followed the red tour. Thus, when following the optimal strategy-with- prior-information, Santa would have either waited to take the detour to the 6th floor at the end of his tour or waited on the 6th floor for Olina to return home. In the first case, Santa’s delay compared to the optimal tour cannot increase and thus is still at most 20 minutes. In the second case, Olina’s family receives their presents before Alani’s family in the strategy-with-prior-information. Thus, in the strategy-without-prior-information, Alani’s family receives their presents earlier or at the same time as in the optimal strategy-with-prior-information. This means that in this case, Santa is delayed by at most 10 minutes compared to the
41 optimal strategy-with-prior-information.
At 2:10, Santa can leave the 5th floor without knowing if Malu or Alani returns home first, because he knows that all family members return home before 2:30. Thus, at 2:10, Santa can crawl to the first or 9th floor because in this case, it does not matter whether he follows the blue or red route.
Now, let us look at the ten observations concerning an optimal strategy-without- prior-information.
1. It is optimal to land at midnight on the balcony of the 5th floor. Correct. In the strategy-without-prior-information that we described above, Santa Claus lands at midnight and needs at most 20 minutes longer than any strategy-with-prior-information. Because of Observation 3, this is optimal. This means that it is optimal to land at midnight.
2. If Alani and Olina arrive first and at the same time, then Santa shouldn’t immediately crawl to the 6th floor. Correct. Assume Alani and Olina both come home at 0:30 and Malu at 1:10. In an optimal strategy-with-prior-information, Santa visits Alani’s fa- mily at 0:30, Olina’s family at 0:55 and Malu’s family at 1:10. At 1:30, he can take off from the 5th floor. If Santa distributes the presents for Olina’s family at 0:35, he needs to wait until 2:00 to visit all families and return to the 5th floor. This is 30 minutes slower than the optimal strategy-with- prior-information. The strategy-without-prior-information that we descri- bed above only needs 20 minutes more.
3. Even if Olina comes home at least 50 minutes after Alani and Malu, any op- timal strategy-without-prior-information ends 20 minutes later in the worst case than an optimal strategy-with-prior-information. Correct. Assume Alani and Malu both come home at 0:30 and Olina comes home at 1:20. In an optimal strategy-with-prior-information, Santa delivers the presents for Alani’s family at 0:30, the presents for Malu’s family at 1:10 and the presents for Olina’s family at 1:25. At 1:30, Santa can take off from the 5th floor.
Observation 5 implies that in an optimal-strategy-without-prior-information, Santa should wait on the 5th floor until one of the family members has re- turned home. Thus, if Santa is still on the 5th floor at 0:30 and also has not delivered any presents, the earliest he can be ready to take off from the
42 5th floor is at 1:50. Thus, in this case, an optimal strategy-without-prior- information needs 20 minutes longer than an optimal strategy-with-prior- information.
4. There is an optimal strategy-without-prior-information that finishes at the same time as any optimal strategy-with-prior-information if all three arrive at 2:30. Correct. In the strategy-without-prior-information that we described abo- ve, Santa is ready to take off from the 5th floor at 3:30. In an optimal strategy-with-prior-information, Santa still needs to pass by 12 floors at 2:30. Thus, in this case, the optimal strategy-with-prior-information also ends the delivery at 3:30.
5. If no one has arrived by 0:30, then Santa must still be on the 5th floor at 0:30. Correct. Assume Santa Claus is on some floor above the 5th floor at 0:30. Also assume that Alani arrives home at 0:30, Olina at 0:30 and Malu at 1:10. In this case, an optimal strategy-with-prior-information takes off from the 5th floor at 1:30. Since Santa Claus is above the 5th floor at 0:30, he needs more than 20 minutes to reach Alani’s family. Thus, regardless of which family Sants visits first, he cannot not be done delivering the presents by 1:50. Therefore, he needs more than 20 minutes longer than an optimal strategy-with-prior-information. If Santa Claus is below the 5th floor at 0:30, we can swap the arrival times of Alani and Malu to get an example in which Santa Claus is more than 20 minutes slower than an optimal strategy-with-prior-information. Since there is an optimal strategy-without-prior-information which is at most 20 minutes slower than any optimal strategy-with-prior-information, Santa should be on the 5th floor at 0:30.
6. There is a strategy-without-prior-information for Santa such that he can take off from the 5th floor at most 20 minutes after every optimal strategy- with-prior-information. Correct. See the strategy we described above.
7. After Santa Claus has distributed the presents to the 9th floor, he must not wait on the 6th floor for Olina or Alani to return home. Correct. Assume Malu returns home at 0:30, Olina at 1:30 and Alani at 1:10. In a optimal strategy-with-prior-information, Santa Claus distributes the presents to Alani’s and Malu’s families at the moments Alani and Malu come home. Olina’s family gets its presents at 1:35 and Santa can take off
43 at 1:40.
Assume Santa follows a strategy-without-prior-information which first de- livers the presents to Malu’s family and waits for Alani to return home on the 6th floor at 1:10. In this case, Santa can take off no sooner than 2:05 if he visits Alani’s family before Olina’s. If he visits Olina’s family before Alani’s, he can take off at 2:15 at the earliest. In both cases, Santa Claus has at least a 25 minutes delay compared to the optimal strategy-with- prior-information. According to Observation 6, there is a strategy-without- prior-information that has a delay of at most 20 minutes compared to the optimal strategy-with-prior-information. Thus, Santa should not wait on the 6th floor. 8. No matter when Alani, Olina and Malu arrive home exactly, Santa can be sure that he can leave from the 5th floor before 3:30. Correct. No matter when the three arrive home exactly, Santa Claus dis- tributes the presents to Alani’s or Malu’s family before 2:30. At 2:30, all families have arrived home. Thus, Santa needs at most 60 more minutes to deliver the remaining presents and will be for sure ready to leave from the 5th floor by 3:30. 9. If Alani arrives at least an hour after Malu, there is an optimal strategy- without-prior-information for Santa such that he can leave from the 5th floor at the same time as with an optimal strategy-with-prior-information. Wrong. Assume Malu returns at 0:30, Olina at 1:30 and Alani at 2:10 (or alternatively, Malu returns at 0:30, Olina at 2:00 and Alani at 1:30). An optimal strategy-with-prior-information can deliver the presents to all fa- milies at the moments the family members arrive home in both scenarios. In the first case, Santa can take off at 2:20; in the second case, at 2:05. In a strategy-without-prior-information, Santa has to decide on which floor to wait at 1:30 without knowing the exact times when the family members return home. No matter if he waits on the first floor or on the 6th floor or somewhere in between, in one of the cases, he needs longer than the optimal strategy-with-prior-information. 10. If Alani returns home 60 minutes before Malu, then Santa can take off by 2:50 at the latest. Correct. In our strategy-without-prior-information, Santa crawls to the first floor as soon as Alani returns home. After that, he crawls to the 9th floor. Malu returns home at 2:30 at the latest. Thus, Santa starts to crawl towards the 6th floor before 2:30. When Santa arrives on the 6th floor, Olina has already returned home and Santa can deliver the presents right away. Santa thus reaches the 5th floor and is ready to take off before 2:50.
44 9 Brain teaser
Author: Unknown Editor: Matthias Nicol
9.1 Exercise Santa Claus would like to think of a new brain teaser for his elves. Since he has a small prize (two cinema tickets) and a big prize (two concert tickets) to give away, the question should have an easy part and a hard part. He formulates it this way: In a completely dark magic room, there are twenty gloves which are indistinguis- hable inside this room. They consist of
• five white gloves for the right hand,
• five white gloves for the left hand,
• five black gloves for the right hand and
• five black gloves for the left hand.
Two gloves are naturally considered an “appropriate pair” when they are of the same color, one of them is for the left hand and the other one is for the right hand. A “pick” is defined as the withdrawal of a single glove where the color cannot be decided during the selection because of the darkness.
A “pick of n gloves” consists of performing n picks one after the other and only then determining if any two of the n gloves selected form an appropriate pair. When this is the case, we consider the pick of n gloves as conclusive. It soon becomes obvious to Santa that the smallest natural number n with the property that a pick of n gloves is 100% sure conclusive can be really easily and
45 very quickly determined. It thus sounds appropriate to allocate the small prize to this question. To win the concert tickets, the elves must find the correct answer to the following formulation of the question: “How big is the smallest natural number n with the property that a pick of n gloves is conclusive with probability higher than 99%?”
Possible Answers: 1. n = 15 2. n = 14 3. n = 13 4. n = 11 5. n = 10 6. n = 9 7. n = 8 8. n = 7 9. n = 6 10. n = 5
46 9.2 Solution Answer 8: At least n = 7 gloves need to be withdrawn for the pick to be conclusive with 99% probability.
Let f(m) denote the probability that a pick of m gloves is conclusive. For exam- ple, f(1) = 0 and f(11) = 1. It is clear that f is monotone increasing. Therefore, the natural number n we are looking for is the one which satisfies: f(n) > 0,99 and f(n − 1) ≤ 0,99, n ≥ 2
The 20 gloves are separated in four categories:
• five gloves are white left-handed,
• five gloves are white right-handed,
• five gloves are black left-handed and
• five gloves are black right-handed.
We pick m gloves, 6 ≤ m ≤ 10 (therefore out of at least two categories) and con- 20 sider the corresponding set E of selected gloves. There are m possibilities for E.
We now compute the amount of possibilities that E does not contain an appro- priate pair. The m gloves come from at least 2 different categories since m ≥ 6 and at most from two different categories (otherwise, they always contain an ap- propriate pair). As a result, we obtain the following four possible combinations of categories containing no appropriate pair:
• (white left-handed, black left-handed)
• (white left-handed, black right-handed)
• (white right-handed, black left-handed) and
• (white right-handed, black right-handed).