0-1-Knapsack-problem traversal method, dynamic programming method, backtrack method, branch and bound method