[Math] Algorithm – Circle Overlapping

algorithmscircles

Say you have a shape you want to fill up with circles, where by the circles overlap just enough to cover the whole surface area of the shape. The circles will remain as a fixed size however the shape they fill may change. Is there some sort of mathematical formula that could achieve this to efficiently fill a shape with circles?

for example you have a rectangle thats 2500cm2 and circles that are 500cm2 what would you do to work it out so that they fill the whole surface area of the shape using the minimum number of circles.

I don't have much of a background in maths so I have no idea if this is a simple or complex problem.

Images below not to scale just to demonstrate the concept.

enter image description here

enter image description here

Best Answer

In the first place, don't use a square grid but an hexagonal one.

enter image description here

In the general case, the problem is quite arduous (in fact even intractable) if you want a truly optimal solution. Optimal solutions are known for a small number of particular cases. For instance https://en.wikipedia.org/wiki/Disk_covering_problem, https://erich-friedman.github.io/packing/circovsqu/.

Related Question