Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SUBSET-SUM-kS, t> | S-(X1 equals t). For example, is in SUBSET-SUM because 3+7+11-21. SET-PARTITION = { S = {xi Xk} can be partitioned into two

image text in transcribed

SUBSET-SUM-kS, t> | S-(X1 equals t). For example, is in SUBSET-SUM because 3+7+11-21. SET-PARTITION = { S = {xi Xk} can be partitioned into two parts A and A whereA XkJand for some {y yh} {X1 Xk} the sum of the y's . S - A and the sum of the elements in A is equal to the sum of the elements in -A. For example, works because A 12, 3,7] and -A-4, 8] since 2+3+7-4+8 a) Prove that SUBSET-SUM is in NFP. b) Prove that SET-PARTITION is in NP I claim that SET-PARTITION is NP-complete and so if it reduces to SUBSET-SUM then SUBSET-SUM is NP-complete too. So I need to show that SET-PARTITION sp SUBSET SUM. My reduction function is 1. Add up X1 Xk and to get y 2. If y is even then t-y/2 otherwise t = 0 3. Output c) Either give a counter example or use the definition for sp to explain why my reduction function F either does or does not work? d) Prove my claim that, if SET-PARTITION is NP-complete and if it reduces to SUBSET- SUM then SUBSET-SUM is NP-complete. SUBSET-SUM-kS, t> | S-(X1 equals t). For example, is in SUBSET-SUM because 3+7+11-21. SET-PARTITION = { S = {xi Xk} can be partitioned into two parts A and A whereA XkJand for some {y yh} {X1 Xk} the sum of the y's . S - A and the sum of the elements in A is equal to the sum of the elements in -A. For example, works because A 12, 3,7] and -A-4, 8] since 2+3+7-4+8 a) Prove that SUBSET-SUM is in NFP. b) Prove that SET-PARTITION is in NP I claim that SET-PARTITION is NP-complete and so if it reduces to SUBSET-SUM then SUBSET-SUM is NP-complete too. So I need to show that SET-PARTITION sp SUBSET SUM. My reduction function is 1. Add up X1 Xk and to get y 2. If y is even then t-y/2 otherwise t = 0 3. Output c) Either give a counter example or use the definition for sp to explain why my reduction function F either does or does not work? d) Prove my claim that, if SET-PARTITION is NP-complete and if it reduces to SUBSET- SUM then SUBSET-SUM is NP-complete

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

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

Explain the process of balancing a set of DFDs.

Answered: 1 week ago

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago