Question: Question 1 : Consider the Differentiated Set Coveruge Problem: Input: n items, U = ( 1 , 2 , dots, n ) , coverage requirements

Question 1: Consider the Differentiated Set Coveruge Problem:
Input: n items, U=(1,2,dots,n), coverage requirements of the itema f=(f1,f2,dots,fn),m sets, s1,S2,dots,Sm+1 price of the sets p=(p1,p2,dots,pm).
Let x=(x1,x2,dots,xn) be the selection decisions of the sets, x1in{0,1}.
Output: A minimum price selection x of the sets S1,S2,dots,Sa that can cover the items is U at least f times.
Ex: Let n=5 and U=(1,2,3,4,5) luving coverage requirements f=(1,2,1,2,1).
Let m=5 and S1={1,2},S2={2,3,4},S3={2,5},S4={3,4},S5={1,4} with prices p=(5,6,10,2,4).
For instance, item j=2inU should be covered by at least f2=2 different sets S.. We note that item 2can be concred by S1 with price p1=5, by S2 with price p2=6 and by S3 with price p3=10.
Determine a grody selection rule for the sets. Design a greedy algorithen for the Differentiated Set Coverage Problem and report the poeudocode.
Discus the time comploxity of your srecdy atgorithm. Is it efficient? Can your algorithm find the optimum solution?
Implement your algotitim in Python. Uke the inpat given in the example ad report the console outputs and your Python code scripts.
 Question 1: Consider the Differentiated Set Coveruge Problem: Input: n items,

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 Programming Questions!