Skip to content

Comment on JQuery plugin to arrange images using knapsack algorithmparent

Comments

Right, that makes sense. Thank you.

What would happen if I encoded a large integer factorization instance into a Knapsack Problem and called your system?

Given that it's a jquery plugin, you'd probably get a "script on this page is running slowly" message.

This answer completely misses the point. Of course the algorithm could run "forever", thus triggering browser timeouts.

But it could as well terminate early, providing a suboptimal but fast solution.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.