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

Algorithms

 
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 
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 
Hi,


Wjousts wrote:
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.


That is two requirements, and they may or may not contradict each other.

Assume the same problem in one dimension; our example has 5 points at coordinate 0, 1, 2, 99, 100.
Now what are the points that meet your requirements with respect to the point at 0: is it 99 and 100 (maximizing requirement 1) or is it 1 and 100 (maximizing requirement 2), or something else?

You should first give an accurate requirement; if it is really unambiguous, you can then write a mathematical equation (a "cost function") or a software method that calculates how suitable a candidate solution is.

Once that is done, a suitable algorithm can be searched. For small problems, a brute force algorithm can be sufficient (i.e. just consider all possibilities, calculate all costs, and pick the lowest one).

For some cost functions, a smarter algorithm could be found, e.g. alpha-beta pruning might reduce the solution space.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

I use ListBoxes for line-oriented text (not TextBoxes), and PictureBoxes for pictures (not drawings).


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 
GeneralRe: shortest paths from s to every vertex of G Pin
Tony Pottier3-Jan-09 13:32
Tony Pottier3-Jan-09 13:32 
AnswerRe: shortest paths from s to every vertex of G Pin
valiantljk6-Jan-09 5:07
valiantljk6-Jan-09 5:07 
AnswerRe: shortest paths from s to every vertex of G Pin
Mustafa Ismail Mustafa6-Jan-09 6:10
Mustafa Ismail Mustafa6-Jan-09 6:10 
QuestionA matter of size - the size of the search space Pin
Mustafa Ismail Mustafa30-Dec-08 23:26
Mustafa Ismail Mustafa30-Dec-08 23:26 

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.