subject
Physics, 15.02.2022 04:20 ilovecupcakes8459

You’re doing some stress-testing on various models of glass jars to determine the height from which they can be dropped and still not break. The setup for this experiment, on a particular type of jar, is as follows. You have a ladder with n rungs, and you want to find the highest rung from which you can drop a copy of the jar and not have it break. We call this the highest safe rung. It might be natural to try binary search: drop a jar from the middle rung, see if it breaks, and then recursively try from rung n/4 or 3n/4 depending on the outcome. But this has the drawback that you could break a lot of jars in finding the answer. If your primary goal were to conserve jars, on the other hand, you could try the following strategy. Start by dropping a jar from the first rung, then the second rung, and so forth, climbing one higher each time until the jar breaks. In this way, you only need a single jar—at the moment it breaks, you have the correct answer—but you may have to drop it n times (rather than log n as in the binary search solution). So here is the trade-off: it seems you can perform fewer drops if you’re willing to break more jars. To understand better how this tradeoff works at a quantitative level, let’s consider how to run this experiment given a fixed "budget" of k ≥ 1 jars. In other words, you have to determine the correct answer—the highest safe rung—and can use at most k jars in doing so. Required:
Suppose you are given a budget of k = 2 jars. Describe a strategy for finding the highest safe rung that requires you to drop a jar at most f(n) times, for some function f(n) that grows slower than linearly.

ansver
Answers: 1

Other questions on the subject: Physics

image
Physics, 21.06.2019 20:00, angi17e
Alice added sodium chloride to water and stirred the water for several minutes. alice is most likely trying to demonstrate that ionic compounds a. are hard. b. can dissolve. c. are clear. d. can melt.
Answers: 1
image
Physics, 22.06.2019 13:10, kelonmazon2492
The bar of prob. 5/82 is repeated here. the ends of the 0.4-m bar remain in contact with their re- spective support surfaces. end b has a velocity of 0.5 m/s and an acceleration of 0.3 m/s2 in the di- rections shown. determine the angular accelera- tion of the bar and the acceleration of end a.
Answers: 3
image
Physics, 22.06.2019 18:50, rurbanok12
8.29 two streams containing pyridine and acetic acid at 25°c are mixed and fed into a heat exchanger. due to the heat-of-mixing effect, it is desired to reduce the temperature after mixing to 25°c using a stream of chilled ethylene glycol as indicated in the diagram. calculate the mass flow rate of ethylene glycol needed. the heat capacity of ethylene glycol at these conditions is approximately 2.8 kj/(kg k), and the enthalpy change of mixing (δmixh) is given below.
Answers: 3
image
Physics, 23.06.2019 02:00, em387p3s1zr
Athird point charge q3 is now positioned halfway between q1 and q2. the net force on q2 now has a magnitude of f2,net = 5.861 n and points away from q1 and q3. what is the value (sign and magnitude) of the charge q3?
Answers: 2
You know the right answer?
You’re doing some stress-testing on various models of glass jars to determine the height from which...

Questions in other subjects:

Konu
Mathematics, 01.04.2020 19:52
Konu
Mathematics, 01.04.2020 19:52
Konu
Mathematics, 01.04.2020 19:52