Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( 1 6 pts ) ( Length of your answer: 1 - 2 pages ) THREE 2 ONE - PARTITION Problem : Instance: A finite

(16 pts)
(Length of your answer: 1-2 pages)
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 set A={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

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

The Temple Of Django Database Performance

Authors: Andrew Brookins

1st Edition

1734303700, 978-1734303704

More Books

Students also viewed these Databases questions

Question

design a simple performance appraisal system

Answered: 1 week ago