any approximation algorithms for this minimization problem?
Author |
Message |
grasssu
|
Posted: Tue May 20, 2008 4:01 am Post subject: any approximation algorithms for this minimization problem? |
|
|
a set of objects (i from 1 to m), each has:
vi: the value of object i;
si: size of object i.
try to find a subset that can minimize the total value, subject to the condition that total size greater than or equal to B
Any known approximation algorithms for it? Thanks! |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Vermette
![](http://compsci.ca/v3/uploads/user_avatars/637825944810b5d4444c6.jpg)
|
Posted: Tue May 20, 2008 8:38 pm Post subject: RE:any approximation algorithms for this minimization problem? |
|
|
Are negative values legal? |
|
|
|
|
![](images/spacer.gif) |
HeavenAgain
![](http://compsci.ca/v3/uploads/user_avatars/139122102045e603120b143.jpg)
|
Posted: Tue May 20, 2008 8:49 pm Post subject: RE:any approximation algorithms for this minimization problem? |
|
|
well, what is the range of m?
and.... there is a greedy way to do it, complexity is O(nlogn) i think. where you sort it first, then start packing it |
|
|
|
|
![](images/spacer.gif) |
|
|