Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

16
  • 5
    \$\begingroup\$ +1 Voronoi is a good idea, with more points I think the image will look pretty good subjectively speaking (at least the art style should be interesting). I'll probably try it out in a bit if you don't mind. \$\endgroup\$ Commented Jan 26, 2016 at 20:28
  • \$\begingroup\$ @neocpp I added a short paragraph and an example image with a larger number of points. \$\endgroup\$ Commented Jan 28, 2016 at 18:09
  • \$\begingroup\$ You can squeeze a few more bytes using import java.util.*; In fact change all import classes to asterisks. \$\endgroup\$ Commented Jan 29, 2016 at 0:53
  • \$\begingroup\$ @Chloe I tried this, to some extent: Increasing the number of points to 10 or 12 caused a lower score in the end. It's certainly possible to tweak the optimizer to achieve a higher score there, or golf the code even more and then use maybe 14 points (and then possibly achieve a higher score with the current optimizer configuration), but there are far too many degrees of freedom to explore this exhaustively. I just thought that this Voronoi thing may be a neat idea, and tried to achieve a "good" result with reasonable effort. \$\endgroup\$ Commented Jan 29, 2016 at 10:18
  • \$\begingroup\$ I don't quite know how the optimization works (it looks deterministic to me), but it may help to run a few cases with random starting vectors if it's fast enough. At least when I ran my GA with 8 points it consistently found solutions which were a few hundred points below what was posted, and increasing the number of points seemed to produce strictly better solutions. \$\endgroup\$ Commented Jan 29, 2016 at 13:10