Comment on JQuery plugin to arrange images using knapsack algorithmparentComments−jahewson14yKnapsack 0-1 is a (special case) problem, not an algorithm.−gauravsc14yWell 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.−jahewson14yYes, the steps used to solve the problem are indeed the algorithm... But the question stands: what algorithm did you use?
Comments
Knapsack 0-1 is a (special case) problem, not an algorithm.
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.
Yes, the steps used to solve the problem are indeed the algorithm... But the question stands: what algorithm did you use?