You have two identical eggs, and are given the task of figuring out the highest floor of a 100-story building from which an egg can be dropped safely (meaning that it doesn't break). You have no prior information about this matter, so for all you know a fall from the first floor might break the egg, but then again, it might be strong enough to survive a 100-story drop.
You need to conduct experiments by dropping the eggs from various levels in the building to solve the problem. You are allowed to break both eggs as long as you come up with an answer.
Find a strategy to minimize the maximum number of drops you would have to do. What is this number? (For example if your strategy is dropping an egg from first, then second, then third floors, and so on until it breaks, the maximum number of drops is 100.)
Adding on to Chardenine's method, if your egg didn't break when you dropped it from the 50/51 floor. You could then drop an egg every 2 floors up until you find the one it breaks on and then drop it from the floor below that to see which it was.
|
Posted by Aeternus
on 2002-10-01 06:25:23 |