Question: You are doing a stress test on a particular model of smart phones. You have a ladder with n rungs. You want to determine the
You are doing a stress test on a particular model of smart phones. You
have a ladder with n rungs. You want to determine the highest rung
from which you can drop a phone without it breaking and you want
to do it with the smallest number of phone drops.
Imagine that you have exactly phones. Devise an algorithm
that can determine the highest safe rung using on drops.
Now suppose you have k phones. Devise an algorithm that can
determine the highest safe rung with the smallest number of
drops. If fkn is the number of drops that your algorithm
needs, what is fkn asymptotically? Hint: you should ensure
that fkn ofkn for any k
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
