News for hackers. Stuff that matters.
Re:JQuery plugin to arrange images using knapsack algorithm by jahewson on Tuesday April 24, 2012 @05:04AM (#3883069)
Knapsack 0-1 is a (special case) problem, not an algorithm.
Re:JQuery plugin to arrange images using knapsack algorithm by gauravsc on Tuesday April 24, 2012 @05:26AM (#3883106)
Well as far as my knowledge goes, any sequence of steps to solve a problem is an algorithm(some are simple algorithms and some are complex). In our case we couldn't use fractional knapsack since we couldn't break images.
Re:JQuery plugin to arrange images using knapsack algorithm by jahewson on Tuesday April 24, 2012 @05:33AM (#3883124)
Yes, the steps used to solve the problem are indeed the algorithm... But the question stands: what algorithm did you use?