Re: Subset Sum Problem
- From: "Googmeister" <googmeister@xxxxxxxxx>
- Date: 15 Jan 2006 16:03:50 -0800
JeffCameron wrote:
> While reading about the so-caled subset sum problem, I have encountered
> two different versions of the problem:
>
> 1) Given a set of integers, does there exist a subset that sums to some
> integer s?
>
> 2) Given a set of *positive* integers S, does there exist a subset that
> sums to s?
>
> I have read that (1) is NP-Complete. However, I do not know whether or
> not (2) is NP-Complete. does anyone know whether (2) is NP-Complete?
Yes, the "standard" reductions from 3-SAT to SubsetSum involve
only positive integers. So both versions are definitely NP-complete.
.
- Follow-Ups:
- Re: Subset Sum Problem
- From: JeffCameron
- Re: Subset Sum Problem
- References:
- Subset Sum Problem
- From: JeffCameron
- Subset Sum Problem
- Prev by Date: Subset Sum Problem
- Next by Date: TSP Path: NOT Tour
- Previous by thread: Subset Sum Problem
- Next by thread: Re: Subset Sum Problem
- Index(es):
Relevant Pages
|