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, 04.07.2019 16:10
An electrical motor raises a 50kg load at a construct velencity .calculate the power of the motor, if it takes 40sec to raise the load through a height of 24m(take g =9.8n/g)
Answers: 2
question
Engineering, 04.07.2019 18:10
The mass flow rate of the fluid remains constant in all steady flow process. a)- true b)- false
Answers: 1
question
Engineering, 04.07.2019 18:10
Give heat transfer applications for the following, (i) gas turbines (propulsion) ) gas turbines (power generation). (iii) steam turbines. (iv) combined heat and power (chp). (v) automotive engines
Answers: 1
question
Engineering, 04.07.2019 18:10
Ajournal bearing has a journal diameter of 3.250 in with a unilateral tolerance of 20.003 in. the bushing bore has a diameter of 3.256 in and a unilateral tolerance of 0.004 in. the bushing is 2.8 in long and supports a 700-lbf load. the journal speed is 900 rev/min. find the minimum oil film thickness and the maximum film pressure for both sae 20 and sae 20w-30 lubricants, for the tightest assembly if the operating film temperature is 160°f. a computer code is appropriate for solving this problem.
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
English, 21.10.2020 22:01
question
Chemistry, 21.10.2020 22:01
question
Mathematics, 21.10.2020 22:01
question
Mathematics, 21.10.2020 22:01
question
Mathematics, 21.10.2020 22:01