Re: Subset sum problem
- From: torbenm@xxxxxxx (Torben Ægidius Mogensen)
- Date: 08 Apr 2005 10:38:17 +0200
"John P. Green" <xyzzy35@xxxxxxxxxxx> writes:
> I have a variation of the subset sum problem I want to solve:
>
> Given a finite set W of real numbers, of cardinality n,
> real number s, and integer k <= n, find a subset of W
> of cardinality k whose sum is as close as possible to s.
>
> This problem is I'm sure NP-complete,
Indeed, as a solution to this problem will also give a solution to the
subset sum problem.
> I'd like to know what approximation algorithms are available.
If you have a subset sum approximation, you can use this to
approximate your problem:
1) Convert the reals to integers (possibly scaling them to get more
digits of precision).
2) Find approximative subset sum.
You can increase the scaling to increase precision.
Torben
.
- References:
- Subset sum problem
- From: John P. Green
- Subset sum problem
- Prev by Date: Subset sum problem
- Next by Date: Last call for papers CAAN 2005
- Previous by thread: Subset sum problem
- Next by thread: Last call for papers CAAN 2005
- Index(es):
Relevant Pages
|