Question: READ THE INSTRUCTIONS CAREFULLY AND ANSWER THE BELOW ATTACHED QUESTION CLEARLY: If your solution uses dynamic programming, we need you to provide the following: (a)
READ THE INSTRUCTIONS CAREFULLY AND ANSWER THE BELOW ATTACHED QUESTION CLEARLY:
If your solution uses dynamic programming, we need you to provide the following: (a) If there is any preprocessing stage before mentioning subproblem definition, state that. If the preprocessing algorithm uses something known from some tutorial or some earlier course, e.g. DSA, then just mention that as a subroutine. No need to describe that. (b) A precise description of the subproblems you want to solve in the dynamic program. Notice this is just the subproblem, not how to solve it, or how it was obtained. (c) A recurrence which relates a subproblem to smaller (whatever you define smaller to mean) subproblems. Notice this is just the recurrence, not the algorithm or why the recurrence is correct. (d) Identify the subproblem that solves the original problem (e) A description of your dynamic programming algorithm which solves the recurrence efficiently. The description must be in English containing mathematical symbols or it can be a pseudocode in plain text. A C++/Java program etc with variable declaration etc will not be accepted. You do not need to prove correctness of the pseudocode (f) An argument for the running time of your dynamic algorithm.
If your solution uses divide and conquer paradigm, then we need you to provide the following. (a) If there is any preprocessing stage before mentioning subproblem definition, state that. If the preprocessing algorithm uses something known from some tutorial or some earlier course, e.g. DSA, then just mention that as a subroutine. No need to describe that. (b) A precise description of the subproblems, i.e. how you divide the actual problem into smaller subproblems. (c) A precise description on how you combine the solutions of the subproblems to solve the actual problem. (d) A description of your complete recursive algorithm. You can refer to the subroutines of (a) and (b). The description must be in English containing mathematical symbols or it can be a pseudocode in plain text. A C++/Java program etc with variable declaration etc will not be accepted. (e) Analysis of running time of the algorithm including a recurrence relation and the solution the recurrence relation.
QUESTION :

Question 3 Suppose that an equipment manufacturing company manufactures si units in the i-th week. Each week's production has to be shipped by the end of that week. Every week, one of the three shipping agents A,B and C are involved in shipping that week's production and they charge in the following: - Company A charges a rupees per unit. - Company B charges b rupees per week (irrespective of the number of units), but will only ship for a block of 3 consecutive weeks. - Company C charges c rupees per unit but returns a reward of d rupees per week, but will not ship for a block of more than 2 consecutive weeks. It means that if si unit is shipped in the i-th week through company C, then the cost for i-th week will be csid. The total cost of the schedule is the total cost to be paid to the agents. If si unit is produced in the i-th week, then si unit has to be shipped in the i-th week. Then, give an efficient algorithm that computes a schedule of minimum cost. (Hint: use dynamic programming) (25 Marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
