Question: Will rate instantly. Please answer fast ( 2 5 pts ) The GEOMETRIC - KNAPSACK problem is a variant of the Knapmark problem in which
Will rate instantly. Please answer fast pts The GEOMETRICKNAPSACK problem is a variant of the Knapmark problem in which our knapsack is a D rectangle and the weight constraint is replaced by a packing, constraint, as follows. The input is a set of n items Ix xn where each item x has a value xi v a height xi h and a width xi w and a rectangle R Wtimes H representing your knapsack. The instance can then be represented by the triple I W H We wish to choose a subset of items I I such that. I can be packed into the knapsack while maximizing x xi va Formulate the decision version of GEOMETRICKNAPSACK. b Is the problem in NP Justify. You can assume that, given two rectangles in R we can decide whether their interior intersect in O time. c Prove that GEOMETRICKNAPSACK is NPhard by reducing from an NPcomplete problem. Hint: there are multiple options here: You may want to reduce from SUBSETSUM, KNAPSACK or RECTANGLEPACKING. Recall that you need to show the reduction which is a polytime algorithm that convert an instance into the other, and you must show both sides of the correctness.
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
