Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 any approximation algorithms for this minimization problem?
Index -> General Discussion
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
grasssu




PostPosted: 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!
Sponsor
Sponsor
Sponsor
sponsor
Vermette




PostPosted: Tue May 20, 2008 8:38 pm   Post subject: RE:any approximation algorithms for this minimization problem?

Are negative values legal?
HeavenAgain




PostPosted: 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
Display posts from previous:   
   Index -> General Discussion
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: