Drop Eggs
Last updated
Last updated
There is an egg museum that has 100 floors. Each floor stores a historical egg. Higher floors store more expensive eggs. The thief gets 2 replica eggs from the gift shop. What is the minimum number of drops in order to find the right floor to steal the egg?
If there's only one egg, then we don't have much to do. The only approach would be trying it in every floor until it breaks. Having a second egg will give the thief more options. One approach can be dropping the first egg in a set interval. For example, every 10 floors. Then dropping the second egg at the interval before the first egg breaks. The worst case will be 19 for this approach. We want to optimize the number of tries in the worse case. Mathematically, this can be expressed as the following inequality .
Solving this inequality by summation.
The building still has n floors. But now we are given m replica eggs instead of 2. What is the minimum number of drops in the worst case?
Ted Ed -