subject
Engineering, 19.11.2019 00:31 hannahhoops12

Suppose we are managing a consulting team of expert computer hackers, and each week we have to choose a job for them to undertake. the set of possible jobs is divided into low-stress and high-stress jobs. if we select a low-stress job for the team in week i, then we get a revenue of li > 0 dollars; if we select a high-stress job, we get a revenue of hi > 0 dollars. the catch, is that in order for the team to take a high-stress job in week i, it is required that they do no job (of either type) in week i − 1; they need a full week of prep time to get ready for the crushing stress level. on the other hand, it is okay for them to take a low-stress job in week i even if they have done a job (of either type) in week i − 1. given a sequence of n weeks, a plan is specified by a choice of "low-stress", "high-stress", or "none" for each of the n weeks, with the property that if "high-stress" is chosen for week i > 1, then none has to be chosen for week i − 1. (it is okay to choose a high-stress job in week 1.) the value of the plan is determined in the natural way: for each i, we add li to the value if we choose "low-stress" in week i, and we add hi to the value if we choose "high stress" in week i. (we add 0 if we choose "none" in week i.) give an efficient algorithm that takes values for l1, l2, . . , n and h1, h2, . . , hn and returns the value of an optimal plan.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 03.07.2019 15:10
Two flowing streams of argon gas are adiabatically mixed to form a single flow/stream. one stream is 1.5 kg/s at 400 kpa and 200 c while the second stream is 2kg/s at 500 kpa and 100 ? . it is stated that the exit state of the mixed single flow of argon gas is 150 c and 300 kpa. assuming there is no work output or input during the mixing process, does this process violate either the first or the second law or both? explain and state all your assumptions.
Answers: 1
question
Engineering, 04.07.2019 18:10
Carbon dioxide gas expands isotherm a turbine from 1 mpa, 500 k at 200 kpa. assuming the ideal gas model and neglecting the kinetic and potential energies, determine the change in entropy, heat transfer and work for each kilogram of co2.
Answers: 2
question
Engineering, 04.07.2019 18:10
Draw the engineering stress-strain curve for (a) bcc; (b) fcc metals and mark important points.
Answers: 1
question
Engineering, 04.07.2019 19:10
The proportional limit is always greater than the yield strength for a material. a)-trune b)- false
Answers: 3
You know the right answer?
Suppose we are managing a consulting team of expert computer hackers, and each week we have to choos...
Questions
question
Spanish, 15.07.2021 20:00
question
Business, 15.07.2021 20:00
question
Mathematics, 15.07.2021 20:00
question
Mathematics, 15.07.2021 20:00
question
Mathematics, 15.07.2021 20:00