Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started