Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Big Data Concepts, Theories, And Applications

Authors: Shui Yu, Song Guo

1st Edition

3319277634, 9783319277639

More Books

Students also viewed these Databases questions

Question

Evaluate each expression. 1 (32) 1 3 4,

Answered: 1 week ago