Answered step by step
Verified Expert Solution
Link Copied!

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 (25 pts) The GEOMETRIC-KNAPSACK problem is a variant of the Knapmark problem in which our knapsack is a 2 D rectangle and the weight constraint is replaced by a packing, constraint, as follows. The input is a set of n items I={x_1,..., x_n} where each item x_1 has a value x_i v, a height x_i h and a width x_i, w, and a rectangle R=[0, W]\times [0, 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_4^* x_i v.(a) Formulate the decision version of GEOMETRIC-KNAPSACK. (b) Is the problem in NP? Justify. You can assume that, given two rectangles in R^2 we can decide whether their interior intersect in O(1) time. (c) Prove that GEOMETRIC-KNAPSACK is NP-hard by reducing from an NP-complete problem. (Hint: there are multiple options here: You may want to reduce from SUBSET-SUM, 0-1 KNAPSACK or RECTANGLE-PACKING. Recall that you need to show the reduction which is a poly-time 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine Ricardo

2nd Edition

1449606008, 978-1449606008

More Books

Students also viewed these Databases questions