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 6559263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:18:07+00:00 2026-05-25T13:18:07+00:00

I need to find an irregular polygon with the smallest surface area out of

  • 0

I need to find an irregular polygon with the smallest surface area out of several vertices on a 2D plane.

No this isn’t homework. Although I wish I was back in school right now.

There are some requirements on how the polygon can be constructed. Let’s say I have 3 different types of vertices (red, green, blue) plotted out on a 8×8 grid. I need to scan all vertices in this grid satisfying the red, green, blue combination requirement and pick the one with the smallest surface area.

Getting the surface area of an irregular polygon is simple enough. I’m mainly concerned about the performance of scanning all possible combinations efficiently.

See the below image for an example. All three types are used to make the polygons however the one circled has the smallest surface area and is my objective.

enter image description here

This scenario is simplified compared to what I’m trying to prototype. The polygons will be constructed of tens if not hundreds of vertices and the grid will be much larger. Also, this will be a process ran 24/7.

I was thinking that maybe I should organize the vertices by type and break them into individual arrays. Then just iterate over the arrays in a tiered fashion to compute the surface area of all combinations. This approach however seems wasteful.

  • 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-25T13:18:08+00:00Added an answer on May 25, 2026 at 1:18 pm

    Here is a version based on branch and bound, with some flourishes.

    1) Break the grid down into a Quadtree, with annotations in the nodes as needed for the rest.

    2) Find the lowest node in the quad tree that has one of each type of node. This gives you a starting solution, which should be at least good enough to speed up the rest of the search.

    3) Do a recursive search which takes all possible branches where I say guess, choosing the most promising candidates first where applicable:

    3a) Guess a vertex of the least common type.

    3b) Using the relative location of points in the quad tree to order your guesses, guess a vertex of the next least common type, so as to guess them in increasing order of distance form the original point…

    3z) you have a complete set of vertices.

    At each step 3? you have a partial set of vertices, which I presume gives you a lower bound on the area of any complete solution including those vertices (is it the area inside the convex hull of the vertices?). You can discard any partial solutions that are already at least as large as the largest solutions so far. If you can live with an answer that is X% inaccurate, you can discard any partial solutions that are within X% of the largest solution so far. Hopefully this prunes the tree of possibilies you are navigating in (3) far enough to make it tractable.

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

Sidebar

Related Questions

I need to find out how to format numbers as strings. My code is
I need to find out the time a function takes for computing the performance
I am puzzled with a query. I need find out the LAST row added
I need find out the wall paper name that has been set in windows.
Need to find out the type of an element inside a listBox, whether the
Need to find out how to do code coverage for WF workflows and activities.
I need find out the number of elements are there in my Jlist. Can
Need to find out the document set name from a field name called Region.
Need to find out the top-10 dictionary key's on the basis of value.... value
Need to find the timestamp for the first minute of the first day of

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.