Dec 2005 Final - Problem 5
  Home FAQ Contact Sign in
uw.cs.cs341 only
 
Advanced search
POPULAR GROUPS

more...

uw.cs.cs341 Profile…
 Up
Dec 2005 Final - Problem 5         


Author: Martin
Date: Aug 6, 2008 12:38

I just found a final on Exambank, and I was wondering about question
five. The problem is worth 10 marks out of 60 total on the exam.

It reads:

Given two sets of natural numbers, A and B, are there non-empty
subsets A' of A and B' of B such that sum(A') = sum(B')? Let n be the
number of elements in A, and m be the number of elements in B. Let's
call this SMALL-PARTITION.

The task is to prove that this is NP complete.

Clearly, the problem is in NP since we can compute the sums in O(n +
m) time.

To prove it's complete, I thought that the easiest would be to prove
that SUBSET-SUM <=p DUAL-PARTITION, and here's what I did:

Given an instance of SUBSET-SUM over a set C with a target sum s,
construct the instance of DUAL-PARTITION as follows:

Let A be the set C, and let B be a set with the single element 's' in
it. This reduction is clearly polytime.
Show full article (1.25Kb)
1 Comment
Re: Dec 2005 Final - Problem 5         


Author: Carmen Bruni
Date: Aug 6, 2008 12:50

On Aug 6, 3:38 pm, Martin gmail.com> wrote:
> I just found a final on Exambank, and I was wondering about question
> five. The problem is worth 10 marks out of 60 total on the exam.
>
> It reads:
>
> Given two sets of natural numbers, A and B, are there non-empty
> subsets A' of A and B' of B such that sum(A') = sum(B')? Let n be the
> number of elements in A, and m be the number of elements in B. Let's
> call this SMALL-PARTITION.
>
> The task is to prove that this is NP complete.
>
> Clearly, the problem is in NP since we can compute the sums in O(n +
> m) time.
>
> To prove it's complete, I thought that the easiest would be to prove
> that SUBSET-SUM <=p DUAL-PARTITION, and here's what I did:
>
> Given an instance of SUBSET-SUM over a set C with a target sum s, ...
Show full article (1.84Kb)
no comments

RELATED THREADS
SubjectArticles qty Group
Re: NSVMVC: 1/8e finales CL (I) & UEFA Cup 1/16e finales (II)nl.sport.voetbal ·