Click here to Skip to main content
15,891,431 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Even Grouping Algorithm Pin
Luc Pattyn19-Jan-09 10:45
sitebuilderLuc Pattyn19-Jan-09 10:45 
GeneralRe: Even Grouping Algorithm Pin
Kyudos19-Jan-09 12:11
Kyudos19-Jan-09 12:11 
GeneralRe: Even Grouping Algorithm Pin
Luc Pattyn19-Jan-09 12:17
sitebuilderLuc Pattyn19-Jan-09 12:17 
AnswerA different grouping question Pin
supercat919-Jan-09 13:38
supercat919-Jan-09 13:38 
GeneralOT Pin
Luc Pattyn19-Jan-09 14:12
sitebuilderLuc Pattyn19-Jan-09 14:12 
QuestionFree Space calculation in NTFS partitions Pin
becktoan18-Jan-09 22:36
becktoan18-Jan-09 22:36 
AnswerRe: Free Space calculation in NTFS partitions Pin
C Change27-Jan-09 1:43
C Change27-Jan-09 1:43 
QuestionFinding points with maximial separation Pin
Wjousts14-Jan-09 3:57
Wjousts14-Jan-09 3:57 
I have a problem that I'm thinking there must be a clever algorithm for. Given a set of points and a matrix that describes the distance between each possible pair of points, what I want to do is for any given point find two other points that are as far away as possible from the original point, but also as far apart from each other as possible.

I was thinking of doing something like this:
1) pick a random point, let's call it A
2) sort all other points in order of their distance from point A
3) pick the point that is furthest from A, let's call it B
4) For all remaining points (i.e. not A or B) average their distances from both A and B and sort them in order of this average distance
5) pick the point with the highest average distance from A and B, lets call it C

This should at least give me A and B as far apart as possible, but, depending on how the points are distributed, it might be possible C is quite close to A or B.
Also I'd like to extend the method to cope with picking more than three points. In other words, if I need a point D, I could basically repeat steps 4 and 5 (averaging A, B and C rather than just A and B this time), but it seems like it's not very efficient.

Any ideas?
AnswerRe: Finding points with maximial separation Pin
Alan Balkany14-Jan-09 4:15
Alan Balkany14-Jan-09 4:15 
GeneralRe: Finding points with maximial separation Pin
Wjousts14-Jan-09 7:54
Wjousts14-Jan-09 7:54 
GeneralRe: Finding points with maximial separation Pin
Alan Balkany14-Jan-09 9:56
Alan Balkany14-Jan-09 9:56 
GeneralRe: Finding points with maximial separation Pin
Luc Pattyn14-Jan-09 8:59
sitebuilderLuc Pattyn14-Jan-09 8:59 
AnswerRe: Finding points with maximial separation Pin
User 98852-Feb-09 3:22
User 98852-Feb-09 3:22 
QuestionDX-Ball game in java Language Pin
1uye8-Jan-09 5:38
1uye8-Jan-09 5:38 
AnswerRe: DX-Ball game in java Language Pin
EliottA8-Jan-09 6:38
EliottA8-Jan-09 6:38 
AnswerRe: DX-Ball game in java Language Pin
HosamAly8-Jan-09 19:58
HosamAly8-Jan-09 19:58 
QuestionOPT Replacement Policy [modified] Pin
Mustafa Ismail Mustafa4-Jan-09 22:46
Mustafa Ismail Mustafa4-Jan-09 22:46 
AnswerRe: OPT Replacement Policy Pin
Alan Balkany5-Jan-09 3:59
Alan Balkany5-Jan-09 3:59 
GeneralRe: OPT Replacement Policy Pin
Mustafa Ismail Mustafa5-Jan-09 8:23
Mustafa Ismail Mustafa5-Jan-09 8:23 
GeneralRe: OPT Replacement Policy Pin
Alan Balkany6-Jan-09 4:03
Alan Balkany6-Jan-09 4:03 
GeneralRe: OPT Replacement Policy Pin
Mustafa Ismail Mustafa6-Jan-09 4:18
Mustafa Ismail Mustafa6-Jan-09 4:18 
AnswerRe: OPT Replacement Policy Pin
Pete O'Hanlon5-Jan-09 5:01
mvePete O'Hanlon5-Jan-09 5:01 
GeneralRe: OPT Replacement Policy Pin
Mustafa Ismail Mustafa5-Jan-09 8:45
Mustafa Ismail Mustafa5-Jan-09 8:45 
Questionshortest paths from s to every vertex of G Pin
nicoletsgr3-Jan-09 10:13
nicoletsgr3-Jan-09 10:13 
AnswerRe: shortest paths from s to every vertex of G Pin
Tony Pottier3-Jan-09 13:27
Tony Pottier3-Jan-09 13:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.