6
$\begingroup$

In an a past admission paper from a local university, I came across a problem I couldn't solve.

Given $n$ circles with their respective radii $r_1, r_2, \dotsc , r_n,$ we are to find the minimum width of a rectangle to encapsulate all the given circles. The placement of the circles, along with an example case may be found here:

enter image description here

The problem, as I see it, is identifying the overlapping portion of the segments determined by the radii of adjacent circles of different diameters, and deduct the length of any such overlapping segment from the total sum of the radii.

It may be because I have no training in geometry, or I'm simply missing something trivial, but I can't see a solution. How would you solve this?

$\endgroup$

1 Answer 1

1
$\begingroup$

I'm assuming that the circles have to be placed as illustrated tangent to the common edge in the order they are specified - that is, we're not shuffling the circles around to solve an arbitrary packing.

There will still be some tricky cases when adjacent circles are of significantly different diameters. However in the case where the circle sizes are sufficiently similar that each circle touches only its two immediate neighbours (and the end circles touch the sides of the rectangle), the distance between adjacent circle centres is simply the projected distance of the line between the two centres: $$d_i = \sqrt{(r_i + r_{i+1})^2 - (r_i - r_{i+1})^2 } $$ where $d_i \;(i=[1..n-1])$ is the distance increment from centre to centre.

enter image description here

The total width is then $$r_1+\sum_1^{n-1}{d_i}+r_n$$

For the illustrated case, that's $$2+2\sqrt{(9-1)}+2 = 4+2\sqrt {\bbox[1px]{8}} \approx 9.657$$

$\endgroup$
1
  • $\begingroup$ @jaymath You're welcome. Feel free to click the up-arrow next to my answer (which will also earn you a badge :-) ) $\endgroup$
    – Joffan
    Jun 16, 2016 at 13:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .