You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution for xkcd "NP-complete" comic (http://xkcd.com/287/). This is a variety of an "unbounded knapsack" problem - solution (which turns out to be anticlimactic) can be found using a dynamic-programming algorithm.