In this exercise we recall the fractional knapsack problem


In this exercise we recall the Fractional Knapsack Problem. The inputs to the problem are a positive integer W the knapsack capacity; item weights tel," .115" [positive integers); and item values 1:1,. .13" (positive integers}. The clashed output is a fractional subset s of the items maximising u[S} = Essa.- suhject to the capacity constraint Es- w,- 5 W. Show that this is a special case of the maximum-weight-hasis problem for outside. Mat is the matroid?) If you implement the "genetic"r greedy algorithm, hot».r fast is it?

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: In this exercise we recall the fractional knapsack problem
Reference No:- TGS02276160

Now Priced at $10 (50% Discount)

Recommended (98%)

Rated (4.3/5)