Question

Is the following problem NP-Complete? The Rice bowl problem is to pick the ingredients for your bowl. You are given a se...

Is the following problem NP-Complete?

The Rice bowl problem is to pick the ingredients for your bowl. You are given a set of ingredients I1 to In. Each ingredient Ii comes with
a quality qi and a quantity si . You are also given a bowl size S and a quality goal Q. Can you select a subset of the ingredients that both fit in the bowl (the sum of their
si is at most S) and have enough quality (the sum of their qi is at least Q).

I know that this problem is NP-Complete (the knapsack problem can be reduced to it), but I am having difficulty formulating a proper proof for this.

I know that I have to show that the knapsack problem is in np, which can easily be done with a certificate. Next I have to show that the knapsack problem can be reduced to this problem. Lastly I have to simply show that if knapsack is np complete, then this problem is also np complete.

The problem is I can't seem to formulate a formal proof to do the above. Can someone please help out with that?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The Rice bowl problem has two constraints 1)Quality 2)Weight.

This is similar to a multidimensional knapsack problem. If there is more than one constraint, we get the multidimensional knapsack problem or m-dimensional knapsack problem. The multidimensional knapsack problem is obviously a NP Complete problem.

*In image, m is number of constraints.

Each item j consumes an amount wij from each resource i.

For any fixed m>=2, these problems do admit a pseudo-polynomial time algorithm and a PTAS ( polynomial-time approximation scheme ).

Add a comment
Know the answer?
Add Answer to:
Is the following problem NP-Complete? The Rice bowl problem is to pick the ingredients for your bowl. You are given a se...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • What are the swimlanes in this problem? You are Cathy Apple, internal audit and your task...

    What are the swimlanes in this problem? You are Cathy Apple, internal audit and your task is to produce the flowchart of the accounts payable process. Review the attached transcript of your interview with the manager or a description of the process. Hint: Follow the process described in the videos - Rough out the process on paper then use Excel to produce the final flowchart. Mr. Butts doesn’t mention it to Cathy, but the company uses SAP as its ERP...

  • You are managing a large scale construction project with hundreds of subprojects, some which have to...

    You are managing a large scale construction project with hundreds of subprojects, some which have to be completed before others can begin whereas some subprojects can be carried out simultaneously. The project and its subprojects, and the presence of dependencies between subprojects (which subprojects have to be done before which), can be modeled as a connected unweighted directed graph with nodes representing subprojects and directed edges representing dependencies. 42. Which of the following algorithms will allow you to determine if...

  • Please read the article and answer about questions. You and the Law Business and law are...

    Please read the article and answer about questions. You and the Law Business and law are inseparable. For B-Money, the two predictably merged when he was negotiat- ing a deal for his tracks. At other times, the merger is unpredictable, like when your business faces an unexpected auto accident, product recall, or government regulation change. In either type of situation, when business owners know the law, they can better protect themselves and sometimes even avoid the problems completely. This chapter...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT