Knapsack algorithm in PostgreSQL source code · HackerTrans