Question: THREE 2 ONE - PARTITION Problem : Instance: A finite set of positive integers Z = { z 1 , z 2 , dots, z

THREE2ONE-PARTITION Problem :
Instance: A finite set of positive integers Z={z1,z2,dots,zn}.
Question: Is there a subset Z' of Z such that
Sum of all numbers in Z'=3 Sum of all numbers in Z-Z'
SUM-OF-SUBSETS Problem
Instance: A finite setA={a1,a2,dots,am} and M.
Question: Is there a subset A' in A s.t.aiinA'?ai=M?
Given that THREE2ONE-PARTITION Problem is NP-Complete, prove that the SUM-OF-
SUBSETS Problem is NP-Complete by reducing THREE2ONE-PARTITION Problem to it.
(a) Give a nondeterministic polynomial time algorithm for the SUM-OF-SUBSETS Problem.
(Use Guess statements in your solution, e.g. Guess ({0,1}) returns 0 or 1)
(b) Define the transformation from the THREE2ONE-PARTITION Problem to the SUM-OF-
SUBSETS Problem and give the if-and-only-if proof.
 THREE2ONE-PARTITION Problem : Instance: A finite set of positive integers Z={z1,z2,dots,zn}.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!