December 23rd, 2006, 2:00 am
QuoteOriginally posted by: darkforceYou have two glass balls and a 100-story building. You would like to determine the lowest floor from which a glass ball will break when dropped. What is the strategy that will minimize the worst case scenario for number of drops?With only two balls you need to search more cautiously from the ground up to reuse the first ball. Start by dropping the ball from the 14th floor. If it does not break, drop the ball from the 27th floor (14+13). As long as no ball has broken, test at floors 39, 50, 60, 69, 77, 84, 90, 95, 99, and 100. (an number of modified arithmetic progressions also work). If the ball breaks, go down to the floor above the last floor that produced an unbroken drop and do drops floor by floor with the remaining unbroken ball. Sevvost is correct, the worst case scenario is 14 drops.
Last edited by
Traden4Alpha on December 22nd, 2006, 11:00 pm, edited 1 time in total.