Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Oct 25th, 2006, 12:03 PM   #1
scm007
Newbie
 
Join Date: Jan 2006
Posts: 27
Rep Power: 0 scm007 is on a distinguished road
Branch and bound with 3 interrelated data sets help!

I have a set of data points, (x, y, z). There are thousands of data points, (probably 1-3 thousand). I need to find a way to branch and bound this data such that a <= x <= b, c <= y <= d, e <= z <= f, in a way that is effective and won't take days to compute. I'm really stuck here as this is the hardest algorithm I've tried to write. I would be VERY grateful.

ANY HELP APPRECIATED,

Steve
scm007 is offline   Reply With Quote
Old Oct 25th, 2006, 1:24 PM   #2
pal
Programmer
 
pal's Avatar
 
Join Date: Mar 2005
Location: Washington
Posts: 90
Rep Power: 4 pal is on a distinguished road
Hmm... What's the algorithm called?
Is it a tree?
pal is offline   Reply With Quote
Old Oct 25th, 2006, 1:43 PM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Please note that the forum's rules prohibit cross-posting. Please read them for other facts and restrictions.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 25th, 2006, 1:47 PM   #4
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
To what end are you using the branch and bound strategy? What end result do you expect?
Arevos is offline   Reply With Quote
Old Oct 25th, 2006, 3:06 PM   #5
scm007
Newbie
 
Join Date: Jan 2006
Posts: 27
Rep Power: 0 scm007 is on a distinguished road
Basically, each data point has 3 relevant fields. I need to devise an algorithm such that it will find a solution set of data points (x, y, z) where the mean of each field is within a certain range of a specified value. For instance..

If I had data points (1,4,2), (4,9,8), (6,9,1), and (8,3,6). I would specify that 2<=x<=3, 6<=y<=8, 3<=z<=7. It would select data points (1,4,2) and (4,9,8).

I would also have the algorithm continue to run say 100 extra iterations after it found the first suitable value.
scm007 is offline   Reply With Quote
Old Oct 25th, 2006, 3:51 PM   #6
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by scm007 View Post
Basically, each data point has 3 relevant fields. I need to devise an algorithm such that it will find a solution set of data points (x, y, z) where the mean of each field is within a certain range of a specified value. For instance..

If I had data points (1,4,2), (4,9,8), (6,9,1), and (8,3,6). I would specify that 2<=x<=3, 6<=y<=8, 3<=z<=7. It would select data points (1,4,2) and (4,9,8).
Okay, so (1,4,2) and (4,9,8) are chosen because the mean of each individual field is (2.5, 6.5, 5), and the means fall within the parameters supplied - is this correct?

Is there any upper limit on the size of the data set returned? Does it attempt to return the maximum sized set, the first set it finds, or the first n sets, or the best m sets out of n found sets, or what?
Arevos is offline   Reply With Quote
Old Oct 25th, 2006, 11:27 PM   #7
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 582
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
You lost me when you said
Quote:
Originally Posted by scm007 View Post
There are thousands of data points
__________________
Quote:
Originally Posted by DaWei View Post
Well, it's better than Pen Islands url....;)

crawforddavid2006 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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:37 AM.

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