News for hackers. Stuff that matters.
Re:Algorithmic fitting of Japanese candy by lotyrin on Thursday November 17, 2016 @12:00AM (#12974463)
Yeah, simulated annealing as to the order to place objects in is probably optimal for non-trivial values of n. Also, determinism can often be important and stochastic doesn't have to mean non-deterministic - seed the RNG.
Re:Algorithmic fitting of Japanese candy by kwhitefoot on Friday November 18, 2016 @03:30AM (#12985251)
> seed the RNG

This is something that can't be repeated often enough! Especially when running unit tests.

Re:Algorithmic fitting of Japanese candy by esfandia on Thursday November 17, 2016 @04:08PM (#12981587)
Very true re: RNG seed.