Rename method to determine_knapsack for clarity