Hacker News new | past | comments | ask | show | jobs | submit
A lot of these optimization problems can benefit from using a genetic algorithm: https://github.com/lodenrogue/genetic-algorithm-js