Question: Problem 4 ( 2 + 4 + 5 + 3 = 1 4 ) Project management You are a high - level manager in a
Problem Project management
You are a highlevel manager in a software firm and you are managing software projects. You are asked
to assign of the programmers in your firm among these projects. Assume that all of the programmers
are equally competent.
After some careful thought, you have figured out how much benefit i programmers will bring to project
View this benefit as a number. Formally put, for each project you have computed an array where
is the benefit obtained by assigning i programmers to project Assume that is nondecreasing
with increasing
In this question, you will design a dynamic programming algorithm to determine how many programmers
you will assign to each project so that the total benefit obtained over all projects is maximized.
a Describe the set of subproblems that your dynamic programming algorithm will consider. Your solution
should look something like "For every we define OPT to be
b Give a recurrence expressing the solution to each subproblem in terms of the solution to smaller
subproblems.
c Using your recurrence, design a dynamic programming algorithm to output the optimal allocation of
programmers to the projects. You may use either a topdown or bottomup approach. Remember
that your algorithm needs to output the optimal allocation, not only its benefit. The output of your
algorithm can be an array of length where the th entry gives the number of programmers allocated
to project in the optimal allocation.
d Analyze the running time and space usage of your algorithm.
I need help with part C of this. From what I know, the recurrence should be; OPTi j maxfrom k iAjk OPTikj
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
