|
Re: Re: Re: Re: Re: Re: Smart?
| quote: | Originally posted by DigiNut
I suppose you could get it down to 17, if you used increments of 12. Once you hit floor 84 and it doesn't break, instead of going to 96, you go to 92. That way you only have to drop the next one 6 times.
This doesn't lower the worst case to 12, though, since this is no longer the worst case. The worst case will be when it does break at 84 (after 7 drops) and you need 10 to determine what's in between.
There is no possible way it can be lower unless there's a trick in the question. Here's the proof:
Assuming you drop the first egg at a regular interval n until it breaks, and I am sure that this is required, then the total number of drops required is going to be Floor[100 / n] + (n - 2). You can't make this lower than 18 for any value of n, unless you use the modification mentioned above, which nets you 17.
Flyboy, I'm bothered how you don't respond to any of my reasoning or proofs to tell me how the answers are wrong - I'm starting to wonder if you actually thought these questions through yourself or just dug them up somewhere along with the answers? |
I apologize for not responding sooner. In general, I prefer to simply say "wrong" so that the person may figure out the solution entirely by himself. In this case, your proof was a good idea, but it is flawed. While I would normally just leave it at that, I'll go one step further and tell you that you make a faulty assumption in your first sentence. Any more and I'd be telling you the solution.
I've got plenty more where these came from, if anyone is interested. Yes, I'm a big math nerd :-). Served me damn well in school though ;-)
|