Click here to Skip to main content
15,889,808 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRepost Pin
Luc Pattyn19-Feb-10 4:58
sitebuilderLuc Pattyn19-Feb-10 4:58 
GeneralRe: Closest Polygon Pin
Richard Andrew x6419-Feb-10 6:12
professionalRichard Andrew x6419-Feb-10 6:12 
AnswerRe: Closest Polygon [modified] Pin
harold aptroot19-Feb-10 6:47
harold aptroot19-Feb-10 6:47 
GeneralRe: Closest Polygon Pin
Richard Andrew x6419-Feb-10 6:55
professionalRichard Andrew x6419-Feb-10 6:55 
GeneralRe: Closest Polygon Pin
harold aptroot19-Feb-10 7:05
harold aptroot19-Feb-10 7:05 
GeneralRe: Closest Polygon Pin
Richard Andrew x6419-Feb-10 7:07
professionalRichard Andrew x6419-Feb-10 7:07 
GeneralRe: Closest Polygon Pin
RichardM121-Feb-10 16:17
RichardM121-Feb-10 16:17 
AnswerRe: Closest Polygon Pin
Member 419459315-Apr-10 14:25
Member 419459315-Apr-10 14:25 
Richard,

This is a lot like the Star mapping question from several years back. Sort the polygons by lowest Y value and lowest X value for a point in the polygon, but save the entries 4 times, once for each vertex. Divide the building into a 10x10 grid and determine which square contains the point. Then scan the list of polygons for one that has the XY point in the same square or in one of the adjacent squares. There may be several. Determine the perpendicular distance from the point to either line connecting with the closest point ot the distance to the point. Chose the polygon with the shortest distance. Remember, do not take the square root of the sum of the squares for comparisons, but just compare the sum of the squares.

Dave.
AnswerRe: Closest Polygon Pin
Member 419459315-Apr-10 15:12
Member 419459315-Apr-10 15:12 
QuestionLinear-time suffix array construction Pin
harold aptroot18-Feb-10 7:43
harold aptroot18-Feb-10 7:43 
AnswerRe: Linear-time suffix array construction Pin
Luc Pattyn18-Feb-10 8:01
sitebuilderLuc Pattyn18-Feb-10 8:01 
GeneralRe: Linear-time suffix array construction Pin
harold aptroot18-Feb-10 8:24
harold aptroot18-Feb-10 8:24 
AnswerRe: Linear-time suffix array construction Pin
Luc Pattyn18-Feb-10 8:43
sitebuilderLuc Pattyn18-Feb-10 8:43 
GeneralRe: Linear-time suffix array construction Pin
harold aptroot18-Feb-10 8:56
harold aptroot18-Feb-10 8:56 
AnswerRe: Linear-time suffix array construction Pin
Luc Pattyn18-Feb-10 8:59
sitebuilderLuc Pattyn18-Feb-10 8:59 
GeneralRe: Linear-time suffix array construction Pin
harold aptroot18-Feb-10 9:10
harold aptroot18-Feb-10 9:10 
AnswerRe: Linear-time suffix array construction Pin
Luc Pattyn18-Feb-10 9:16
sitebuilderLuc Pattyn18-Feb-10 9:16 
GeneralRe: Linear-time suffix array construction Pin
harold aptroot18-Feb-10 9:23
harold aptroot18-Feb-10 9:23 
AnswerRe: Linear-time suffix array construction Pin
Luc Pattyn18-Feb-10 9:47
sitebuilderLuc Pattyn18-Feb-10 9:47 
AnswerRe: Linear-time suffix array construction Pin
Luc Pattyn18-Feb-10 10:07
sitebuilderLuc Pattyn18-Feb-10 10:07 
Questionall pathes with length <bound Pin
Member 268673211-Feb-10 22:29
Member 268673211-Feb-10 22:29 
AnswerRe: all pathes with length <bound Pin
Alan Balkany16-Feb-10 4:09
Alan Balkany16-Feb-10 4:09 
QuestionLooking for address validation algorithm Pin
MichaelChristopher11-Feb-10 5:36
MichaelChristopher11-Feb-10 5:36 
Question2D Self Assemblers - Need an Implementation Guide Pin
Sai Yasodharan2-Feb-10 2:34
Sai Yasodharan2-Feb-10 2:34 
AnswerRe: 2D Self Assemblers - Need an Implementation Guide Pin
Richard MacCutchan2-Feb-10 3:28
mveRichard MacCutchan2-Feb-10 3:28 

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.