Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Found a problem floor by minimum steps
Message
De
27/11/2001 10:47:01
 
 
Information générale
Forum:
Games
Catégorie:
Casses-têtes
Divers
Thread ID:
00585855
Message ID:
00586342
Vues:
41
>>>That's true, but the algorithm should work for the worst case scenario too.
>>
>>I was just thinking that if I were given 1 go with 2 balls, would I hedge my bets that I have a 55% chance of being better or at least no worse than another person using the more complicated method.
>
>The probability of the ball to break on any given floor is 1/100. We can calculate probability to find this floor for n steps...
>
>However, if we would not involve probability theory, Steve's solution is the most compact, though a little bit more complex, than Sergey's.

I'm not disagreeing, Steve's is the best solution giving the lowest possible maximum number of drops, but it's not a guaranteed minimum number of steps for all instances.

(Just me being pendantic on the wording of the question, I guess <g>)
Len Speed
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform