Click here to Skip to main content
15,905,867 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: theory needed for a described algorithm Pin
Luc Pattyn16-Mar-12 18:57
sitebuilderLuc Pattyn16-Mar-12 18:57 
GeneralRe: theory needed for a described algorithm Pin
Bernhard Hiller18-Mar-12 21:31
Bernhard Hiller18-Mar-12 21:31 
AnswerRe: theory needed for a described algorithm Pin
Skippums19-Apr-12 10:37
Skippums19-Apr-12 10:37 
Generalcctv video sharing with static ip Pin
sanjib_sinha6-Mar-12 2:30
sanjib_sinha6-Mar-12 2:30 
GeneralRe: cctv video sharing with static ip Pin
Albert Holguin6-Mar-12 4:59
professionalAlbert Holguin6-Mar-12 4:59 
Questionaudio watermarking Pin
sepideh-gh5-Mar-12 4:32
sepideh-gh5-Mar-12 4:32 
AnswerRe: audio watermarking Pin
Richard Andrew x649-Apr-12 4:06
professionalRichard Andrew x649-Apr-12 4:06 
Questionattack codes Pin
sepideh-gh5-Mar-12 4:26
sepideh-gh5-Mar-12 4:26 
QuestionSuper2xSal, SuperEagle, hq2x algorithms Pin
2xSal24-Feb-12 10:28
2xSal24-Feb-12 10:28 
AnswerRe: Super2xSal, SuperEagle, hq2x algorithms Pin
Chris Losinger24-Feb-12 10:57
professionalChris Losinger24-Feb-12 10:57 
QuestionConvert between image file formats??? Pin
supernorb16-Feb-12 22:36
supernorb16-Feb-12 22:36 
AnswerRe: Convert between image file formats??? Pin
Jochen Arndt16-Feb-12 23:41
professionalJochen Arndt16-Feb-12 23:41 
AnswerRe: Convert between image file formats??? Pin
Alan Balkany21-Feb-12 4:11
Alan Balkany21-Feb-12 4:11 
AnswerRe: Convert between image file formats??? Pin
Chris Losinger21-Feb-12 10:50
professionalChris Losinger21-Feb-12 10:50 
QuestionConvert bits to bytes Pin
marca29214-Feb-12 20:15
marca29214-Feb-12 20:15 
AnswerRe: Convert bits to bytes Pin
Peter_in_278014-Feb-12 20:35
professionalPeter_in_278014-Feb-12 20:35 
QuestionOrdering (Poly) Lines Pin
Kyudos13-Feb-12 19:38
Kyudos13-Feb-12 19:38 
AnswerRe: Ordering (Poly) Lines Pin
Alan Balkany16-Feb-12 4:03
Alan Balkany16-Feb-12 4:03 
QuestionCan you do this with a convex hull? Pin
Kyudos12-Feb-12 12:40
Kyudos12-Feb-12 12:40 
AnswerRe: Can you do this with a convex hull? Pin
Kyudos12-Feb-12 14:13
Kyudos12-Feb-12 14:13 
AnswerRe: Can you do this with a convex hull? Pin
BobJanova12-Feb-12 23:03
BobJanova12-Feb-12 23:03 
GeneralRe: Can you do this with a convex hull? Pin
Kyudos13-Feb-12 12:57
Kyudos13-Feb-12 12:57 
GeneralRe: Can you do this with a convex hull? Pin
BobJanova16-Feb-12 5:22
BobJanova16-Feb-12 5:22 
GeneralRe: Can you do this with a convex hull? Pin
Kyudos16-Feb-12 9:50
Kyudos16-Feb-12 9:50 
AnswerRe: Can you do this with a convex hull? Pin
Luc Pattyn16-Feb-12 10:56
sitebuilderLuc Pattyn16-Feb-12 10:56 
Kyudos wrote:
I think throwing the points at a Travelling Salesman algorithm might be less complicated.

No need for that. When the lines are almost parallel, and don't cross each other, you can define some kind of distance, calculate that, and order them all based on it.

Example: take one of the lines, calculate its equation in the form f(x,y)=a*x+b*y+c.

All points on the line itself have f(x,y)=0 by definition.
The green/red points have a non-zero f value, take one of them, or the average, and use that as a distance.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

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.