What's this? How to use?
This is a visualization of the knapsack 0-1 problem,
the traditional one and the one of exact weight sum.
Enter weight, weight & cost of each item.
Enter delay in ms, 200ms may be good.
Check "recursive", if you want to use the top down, recursive & memoization algo;
otherwise, it'll use the bottom up, for loop algo.
Check "exact", if you want the answer of weight sum == given weight;
otherwise, weight sum <= given eight.
Press "Set" to initialize the visualization.
Press "Next", "Pause", "Play" to play the visualization.