Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Algorithm putting point into square with maximal minimum distance

I'm stuck on this: Have a square. Put n points into this square so the minimal distance (not necessary the average distance) is the highest possible.

I'm looking for an algorithm which would be able to generate the coordinates of all points given the count of them.

Example results for n=4;5;6:

Example results for n=4;5;6

Please don't mention computing-power based stuff such as trying a lot of combination and then nitpicking the right one and similar ideas.

like image 369
Mikulas Dite Avatar asked Apr 27 '10 17:04

Mikulas Dite


2 Answers

This is the circles in square packing problem.

It is discussed as problem D1 in Unsolved problems in geometry, by Hallard T. Croft, Kenneth J. Falconer, and Richard K. Guy, page 108.

alt text

Pages 109 and 110 contain a list of references.

like image 78
zaf Avatar answered Sep 30 '22 20:09

zaf


You could do an N body simulation where the points repel each other, perhaps with a 1/r^2 force. The movement of the points would obviously be constrained by the square. Start with all the points approximately in the centre of the square.

like image 20
Paul R Avatar answered Sep 30 '22 18:09

Paul R