subject

Jars on a ladder problem. Given a ladder of n rungs and k identical glass jars, one has to designan experiment of dropping jars from certain rungs, in order to find the highest rung (HS) on theladder from which a jar doesn’t break if dropped. Idea: With only one jar (k=1), we can’t risk breaking the jar without getting an answer. So westart from the lowest rung on the ladder, and move up. When the jar breaks, the previous rung isthe answer; if we are unlucky, we have to do all n rungs, thus n trials. Now lets think of k=log(n):with log(n) or more jars, we have enough jars to do binary search, even if jars are broken at everyrung. So in this case we need log(n) trials. Note that we can’t do binary search with less than log(n)jars, as we risk breaking all jars before arriving at an answer in the worst case. Your task is to calculateq = MinT(n, k)= the minimum number of dropping trials any suchexperiment has to make, to solve the problem even in the worst/unluckiest case (i. e., not runningout of jars to drop before arriving at an answer).MinTstands for Minimum number of Trials. A(5 points).Explain the optimal solution structure and write a recursion for MinT(n, k).

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:10
Write an application that allows a user to enter the names and birthdates of up to 10 friends. continue to prompt the user for names and birthdates until the user enters the sentinel value “zzz” for a name or has entered 10 names, whichever comes first. when the user is finished entering names, produce a count of how many names were entered, and then display the names. in a loop, continuously ask the user to type one of the names and display the corresponding birthdate or an error message if the name has not been previously entered. the loop continues until the user enters “zzz” for a name. save the application as birthdayreminder.java.
Answers: 1
question
Computers and Technology, 21.06.2019 20:30
In the context of it jobs in the information systems field. a is responsible for database design and implementation
Answers: 3
question
Computers and Technology, 22.06.2019 18:10
How can i delete permalinks from a word press site?
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
What side length would you specify if you were required to create a regular hexagonal plate that was composed of 33 cm(squared) of sheet metal? dimension the side length to 0.1 cm
Answers: 2
You know the right answer?
Jars on a ladder problem. Given a ladder of n rungs and k identical glass jars, one has to designan...
Questions
question
History, 18.05.2021 19:10
Questions on the website: 13722363