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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:30:24+00:00 2026-06-14T06:30:24+00:00

How to design an algorithm to find minimum no.of sides of a polygon which

  • 0

How to design an algorithm to find minimum no.of sides of a polygon which lies between two concentric circles?

Similar to this:

circles

  • 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-06-14T06:30:25+00:00Added an answer on June 14, 2026 at 6:30 am

    Think about the simplest case first: the inner circle is microscopically small. The minimum number of sides is 3, as long as the inner circle has a non-zero radius.

    When does the polygon start needing 4 sides? Draw an equilateral triangle inscribed in the circle. The polygon starts needing 4 sides when the inner circle’s radius reaches the center point of the sides of the triangle.

    If you inscribe a regular polygon of N sides into the outer circle, you can compute the distance from the midpoint of each side to the center of the circle using the cosine rule:

    distance_to_midpoint = cos ( 360 / (N * 2) ) * radius_of_outer_circle
    

    (Explanation: if you make a isosceles triangle using the center point of the circle to the side in question, the radii have an angle of 360 / N. Divide the triangle in half at the side’s midpoint to form a right-angle triangle with hypotenuse equal to the radius of the outer circle, then use cosine rule)

    Now distance_to_midpoint needs to be greater than or equal to the radius of the inner circle, so solve for N:

    radius_of_inner_circle = cos(360 / (N * 2)) * radius_of_outer_circle
    cos(360 / (N*2)) = radius_of_inner_circle / radius_of_outer_circle
    360 / (N*2) = acos(radius_i / radius_o)
    N = 180 / (acos(radius_i / radius_o))
    

    (I haven’t double checked this math, and it’s really late).

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

Sidebar

Related Questions

Design an algorithm to find all pairs of integers within an array which sum
I came across this variation of edit-distance problem: Design an algorithm which transforms a
These days I design some algorithms in python, but find first two greatest value
Problem: I have to design an algorithm, which does the following for me: Say
How can I design an algorithm which can return the 10 most frequently used
I'm going through Skiena's The Algorithm Design Manual which uses C. All the examples
Design an algorithm that, given a list of n elements in an array, finds
In Algorithm Design Manual , there is such an excise 4-26 Consider the problem
In Algorithm Design Manual , page 178 describes some properties of Graph, and one
The Algorithm Design Manual describes BFS and DFS quite well. The code for dfs

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.