Algorithmic fitting of japanese candy

· algiegray's blog


Algorithmic Fitting of Japanese Candy #

This video explains the complex algorithm for fitting Japanese candy into a subscription box. The goal was to automatically find the best combinations of candy that would fit within a specific box size.

Key Challenges #

Optimization Strategies #

Complexity and Limitations #

Conclusion #

Top Quotes #

Hey I know, I'm a programmer, I'll just write an algorithm to do it for me. How hard could it be?

So how hard can it be? NP-hard, it turns out.

...at this point my JavaScript code is just too slow. For example the Python package pyShipping comes with an implementation which speeds up these tests by using heuristics.

Action Steps #

Additional Information #

source