Click here to Skip to main content
15,887,676 members
Home / Discussions / Algorithms
   

Algorithms

 
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 
I have a set of parallel-ish lines (they may not be parallel, but they don't cross) that define an area. On each line, I calculate two points (lets say P1 and P2) which define an operating region. With an ordered set of lines, I know for line 1 (L1), the polygon showing the operating region starts at P1 and ends at P2. The next point in the polygon is L2P1, whereas the (n-1)th point is L2P2 (where n is the number of lines I have).

My problem is:

1) Lines may be drawn either way, so P1 and P2 in two 'adjacent' lines may not be on the same side.
2) Lines may not be in order.

So, knowing the number of lines, and which points belong to the same line (i.e., I know which points are paired),
can I calculate the order of the lines / points, so that I can draw my polygon?

It seems like a hulling problem, but is there a way to say 'all these points are on the hull boundary'?
Wouldn't that lead to multiple solutions for certain sets of points?
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 
GeneralRe: Can you do this with a convex hull? Pin
Kyudos16-Feb-12 15:31
Kyudos16-Feb-12 15:31 
GeneralRe: Can you do this with a convex hull? Pin
BobJanova17-Feb-12 0:36
BobJanova17-Feb-12 0:36 
Questionwordwrap with minimum raggedness Pin
Member 858607226-Jan-12 10:09
Member 858607226-Jan-12 10:09 
AnswerCrosspost Pin
Peter_in_278026-Jan-12 11:37
professionalPeter_in_278026-Jan-12 11:37 
QuestionA type of balanced 0–1 matrix Pin
Member 858607221-Jan-12 8:01
Member 858607221-Jan-12 8:01 
AnswerRe: A type of balanced 0–1 matrix Pin
Alan Balkany16-Feb-12 4:08
Alan Balkany16-Feb-12 4:08 
Questioninput Pin
AsadRana21-Jan-12 1:27
AsadRana21-Jan-12 1:27 
AnswerRe: input Pin
Richard MacCutchan21-Jan-12 2:34
mveRichard MacCutchan21-Jan-12 2:34 
AnswerRe: input Pin
BillWoodruff29-Jan-12 13:08
professionalBillWoodruff29-Jan-12 13:08 
QuestionnQueens algorithm Pin
PIEBALDconsult31-Dec-11 4:02
mvePIEBALDconsult31-Dec-11 4:02 
AnswerRe: nQueens algorithm Pin
DaveAuld31-Dec-11 4:49
professionalDaveAuld31-Dec-11 4:49 

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.