Question: Please solve it step by step and cleary. Thank you. EXTRA CREDIT PROBLEM (50 points) Suppose you are the owner of a theater, and several

 Please solve it step by step and cleary. Thank you. EXTRA

Please solve it step by step and cleary. Thank you.

EXTRA CREDIT PROBLEM (50 points) Suppose you are the owner of a theater, and several different groups want to schedule shows in your theater. For each group, you know when their show would like to run, and you have an estimate of the amount of income you will make from ticket sales. Since you cannot schedule all the groups in your theater, you want to select a subset that can be scheduled and that will maximize your total estimated income from their shows. Formally, this problem can be modeled as follows. You are given a collection of n tasks, each of which is represented by its time interval, [ai, bi), [az, b2), ..., [an, ba) and its corresponding weight, wi, w2,.. , Wn. Task i uses interval [ai, bi) and has weight wi. In this model, the times ai, bi and weights wi are all real numbers. Design an efficient dynamic programming algorithm that finds a subset of Sc1,., n) of the tasks that are non-overlapping, and have maximum total weight (profit). Be sure to analyze the time and space used by your algorithm

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!