Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 20th, 2007, 4:06 PM   #1
scm007
Newbie
 
Join Date: Jan 2006
Posts: 27
Rep Power: 0 scm007 is on a distinguished road
How to use Knapsack problem?

Basically I have a set, O consisting of N 3-tuples, <X, Y, Z>. I am trying to construct a set O' subject to the constraint that sum of all X's in O' is within some range X'Range, the average of all Y's is within some range Y'Range, and the sum of all Z's is within some range Z'Range.

This seems like a perfect situation for the knapsack problem does it not? However I am a little confused about how to do this.

Pseudocode would be great!

Steve
scm007 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Has anybody done a knapsack problem in VB-- I'd like your script! scm007 Visual Basic .NET 3 Nov 4th, 2006 2:06 AM
Anybody have a workig multidimensional knapsack problem I could look at? scm007 Software Design and Algorithms 5 Nov 3rd, 2006 12:57 PM
Stuck with a C problem Polaris C++ 8 Aug 19th, 2006 3:30 PM
cgi/perl script + IE problem joyceshee Perl 2 Jan 24th, 2006 11:10 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:31 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC