Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Consider a space of finite area (for eg., a rectangle). We need to pack circles of fixed radius in this finite area. Note that the position (coordinates) of every circle in space is given and fixed.

Two circles cannot be packed in the same rectangle if their areas overlap. Is there an algorithm with provable guarantees that minimizes the number of rectangles that we need to pack all the circles?

What is the best online variant of this algorithm? We can consider extensions of first fit, best fit, etc., to this problem. Are there any guarantees on their performance?

share|improve this question

1 Answer 1

If I understand your problem statement correctly, the size of the rectangles does not matter, as you are basically just copies of the same rectangle, and all circles lie within that, right? So this becomes a purely combinatorial problem: some pairs of circles may be placed in the same rectangle, while others may not. This is an instance of the set cover problem.

As the problem is NP-hard, it is rather unlikely that a polynomial time algoritm does exist. On the other hand, an exponential algorithm with proven guarantees is easy: try all possible ways to form a set of non-empty sets from your circles, never putting two overlapping ones in the same set, and keep track of the minimal number of sets obtained. There might be solutions with slightly better performance for real-life applications. There should be ample literature on the issue.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.