Hi PLEASEEE I NEED HELP ASAPPP At least give me a pseudocode formultidimensional knapsack
I have this code which is similar to an unbounded knapsack butinstead of capacity I have price limit and value is profit.
Item[2] is the price and item[3] is the profit. I tried to put aconstraint of max number of items in it but it just prints profitas 0?
This is what I’ve tried. Please even a pseudocode will help I’mreally lost on how to implement the max number of items?Productlist is a list of products chosen.
def dp_price_and_item_limit(product_list, price_limit, maxitems): chosenProduct=[None]*(price_limit+1) memo=[0]*(price_limit+1)
PayPal Gateway not configured
PayPal Gateway not configured