Question: Define the problem PARTITION as follows: PARTITION Input: A collection of integers. Output: YES if the collection can be split into two such that the

Define the problem PARTITION as follows:

PARTITION

Input: A collection of integers.

Output: YES if the collection can be split into two such that the sum of the integers in each partition sums to the same amount. NO otherwise.

(a) Assuming that PARTITION is \(\mathcal{N} \mathcal{P}\)-complete, prove that BIN PACKING is \(\mathcal{N} \mathcal{P}\)-complete.

(b) Assuming that PARTITION is \(\mathcal{N} \mathcal{P}\)-complete, prove that KNAPSACK is \(\mathcal{N} \mathcal{P}\)-complete.

Step by Step Solution

3.42 Rating (158 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

This question relates to the theory of computational complexity and NPcompleteness The included problems PARTITION BIN PACKING and KNAPSACK are wellkn... View full answer

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 Practical Introduction To Data Structures Questions!