Egg Dropping Reloaded

Calvin has three distinct eggs, one of which is made of rubber and thus cannot break; unfortunately, he doesn’t know which egg is the rubber one .

Further, in some 100-story building there exists a floor such that all normal eggs dropped from below that floor will not break, while those dropped from at or above that floor will break and cannot be dropped again.

What is the minimum number of times Calvin must drop an egg to determine the floor satisfying this property?


Taken from Carnegie Mellon Informatics and Mathematics Competition


The answer is 24.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Satyabrata Dash
Jul 7, 2016

Relevant wiki: Egg Dropping

So the strategy to obtain 24 24 :

drop one egg, until it breaks, from floors 12, 12+12, 12+12+11, 12 + 12 + 11 + 11, . . . , 12 + 12 +· · ·+ 8 + 8. If it never breaks, then the egg was fake and thus it reduces to the 100-floor, two-egg problem. If it breaks on some floor, then drop both eggs on each floor from the bottom up until an egg breaks. Its easy to calculate that this strategy will use either 23 or 24 drops in all of the cases. Now, given any optimal strategy, we can modify it into another optimal strategy so that the strategy consists of iteratively dropping only one egg. Therefore, it suffices to find an increasing sequence of floors 1 a 1 < a 2 < < a n 1 < 100 a n 1 ≤ a_1 < a_2 < · · · < a_n-1 < 100 ≤ a_n that is optimal.

If the egg never breaks then we have made n drops, so we will finish in n + 14 n + 14 drops. If an egg drops on floor a k, then we will necessarily need 2(a k − 1 − a_k−1) more drops. Thus, we want to minimize max{ n + 14 , 1 + 2 ( a 1 1 ) , 2 + 2 ( a 2 a 1 1 ) , . . . , n + 2 ( a n a n 1 1 ) n + 14, 1 + 2(a_1 - 1), 2 + 2(a_2 - a_1 - 1), . . . , n + 2(a_n - a_n-1 - 1) }.

By the averaging principle, we have

m a x ( 1 + 2 ( a 1 1 ) , 2 + 2 ( a 2 a 1 1 ) , . . . , n + 2 ( a n a n 1 1 ) ) n ( n + 1 ) / 2 + 2 ( a n n ) n n ( n + 1 ) / 2 + 2 ( 100 n ) n ) max (1+2(a_1-1), 2+2(a_2-a_1-1), . . . , n+2(a_n-a_n-1-1)) ≥ \frac{n(n + 1)/2 + 2(a_n - n)}{n} ≥ \frac{n(n + 1)/2 + 2(100 - n)}{n}) . When n 9 n ≤ 9 , this is 24 ≥ 24 . When n 11 , n + 14 > 24 n ≥ 11, n + 14 > 24 . Therefore, n = 10, which already means the maximum is at least 24.


Solution Courtesy : CMIMC.

I am thinking about the strategy 20, 20+19, 20+19+18, 20+19+18+17, 20+19+18+17+16, 20+19+18+17+16+10.

if the faked is used first => 6 + 14 = 20 drops
otherwise we are in 100 flour 2 eggs with 20 drops

Abdelhamid Saadi - 4 years, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...