I’ve been spending some time learning about genetic algorithms lately. So I implemented my own genetic-algorithm solution to the knapsack problem. If you’re interested, you can find my source code on github.