c programming -- 2

Job ID: 37499416

Budget: $10 – $30 USD

Solve the 0/1 Knapsack problem using the backtracking algorithm: (a) print the profit, weight
and bound for each node according to the order that is first visited in the implicit pruned state space
tree. (b) print the total profit and weight for the final solution; and (c) print the selected items
together with their profits and weights for the final solution.