subject
Engineering, 04.06.2020 14:07 fordd4

Consider the Job Selection problem from lecture. You will modify the solution to this problem to work for a related problem. In lecture we had the rule that if you work one day you can’t work the next (or previous). In the modified problem you are allowed to work two days in a row but not three days in a row (so if you work 2 days in a row you can’t work the day before these 2 days or the day after). 1. Express the modified problem formally with input and output conditions. 2. State a self-reduction for your problem. Use the self-reduction from lecture as inspiration. 3. State a dynamic programming algorithm based off of your self reduction that computes the maximum earnings. 4. Design a function that recovers the days that must be worked to achieve the maximum earnings. 5. Compute the maximum earnings and the days to work for this input P=[5, 9, 12, 7, 5, 13, 7, 5, 4, 9, 8, 7, 5, 8, 4, 3, 5, 10, 4, 6, 8, 12, 5, 6, 3, 7, 16, 2, 2, 16] 6. What are the worst case time and space requirements of your complete solution?

ansver
Answers: 3

Another question on Engineering

question
Engineering, 03.07.2019 15:10
Ahouse has the following electrical appliance usage (1) single 40w lamp used for 4 hours per day (2) single 60w fan used for 12 hours per day (3) single 200w refrigerator that runs 24 hours per day with compressor run 12 hours and off 12 hours find the solar power inverter size in watt with correction factor of 1.25.
Answers: 1
question
Engineering, 04.07.2019 18:10
During a steady flow process, the change of energy with respect to time is zero. a)- true b)- false
Answers: 2
question
Engineering, 04.07.2019 18:10
Ariver flows from north to south at 8 km/h. a boat is to cross this river from west to east at a speed of 20 km/h (speed of the boat with respect to the earth/ground). at what angle (in degrees) must the boat be pointed upstream such that it will proceed directly across the river (hint: find the speed of the boat with respect to water/river)? a 288 b. 21.8 c. 326 d. 30.2
Answers: 3
question
Engineering, 04.07.2019 18:10
Adouble-strand no. 60 roller chain is used to transmit power between a 13-tooth driving sprocket rotating at 300 rev/min and a 52-tooth driven sprocket. a) what is the allowable horsepower of this drive? b) estimate the center-to-center distance if the chain length is 82 pitches. c) estimate the torque and bending force on the driving shaft by the chain if the actual horsepower transmitted is 30 percent less than the corrected (allowable) power.
Answers: 3
You know the right answer?
Consider the Job Selection problem from lecture. You will modify the solution to this problem to wor...
Questions
question
Mathematics, 12.02.2021 03:10
question
Mathematics, 12.02.2021 03:10
question
History, 12.02.2021 03:10
question
World Languages, 12.02.2021 03:10
question
Mathematics, 12.02.2021 03:10
question
Social Studies, 12.02.2021 03:10
question
Biology, 12.02.2021 03:10
Questions on the website: 13722367