Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7129339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:13:56+00:00 2026-05-28T11:13:56+00:00

Having a path, for example: composed of a set of points ‘p’ I have

  • 0

Having a path, for example: map of guatemala

composed of a set of points ‘p’

I have a set of randomly placed points, both inside and outside. called ‘n’

crudely placed points

So to compare all the points inside to the points on the path to the random points, would be probably exponentially complex. Something like O(n) = n^p if I’m not mistaken It’s O(n) = n*p

So to solve the problem I am thinking that you could subdivide the path in a minimum area that is completely outside, and other that is completely inside. as in the figure

enter image description here

The green set would be inside, the black outside and the orange to be iterated again several times

enter image description here

Is this possible, and more importantly, is it efficient?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T11:13:57+00:00Added an answer on May 28, 2026 at 11:13 am

    Consider looking at point-in-polygon testing literature.

    With this large number of points, I can imagine a y-sweeping approach to be sensible and efficient. Much more than this iteration thing you are trying to do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having this route: map.foo 'foo/*path', :controller => 'foo', :action => 'index' I have the
I'm having problems loading the parse_ini_file, currently I have registered a path in my
Is it possible to execute string path on dynamic type? For example having dynamic
I am still having trouble with PHP5 Namespaces. I have a namespace called Project
So I'm having a path issue on OS X Leopard. It seems OS X
Having a relative path, how do I turn it into an absolute one from
Without having the full module path of a Django model, is it possible to
I am having trouble setting the path to jquery in an mvc app. In
I'm having trouble setting the path to a DLL that is not in the
I am having an issue where Tomcat is treating extra path information as part

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.