News for hackers. Stuff that matters.
Re:51 Star Flag (2011) by OscarCunningham on Thursday January 14, 2021 @01:15AM (#25772773)
My idea would be to optimise the spacing of the stars by using circle packing algorithms. Find the largest radius for which you can fit 51 circles in the rectangle, and then center the stars in the circles. That guarantees that the stars are well spaced.
Re:51 Star Flag (2011) by pietor on Thursday January 14, 2021 @01:30AM (#25772891)
Packing doesn’t necessarily make nice symmetrical things. I don’t have an image for n=51 but this [1] is for 55. Interestingly for square numbers from 49 on, the best packing is not the obvious square lattice either [2]

[1]: https://www.ime.usp.br/~egbirgin/packing/packing_by_nlp/nume...

[2]: https://www.ime.usp.br/~egbirgin/packing/packing_by_nlp/nume...