Question: Problem 3 . Tatte Like Latte Part One ( 1 0 points ) You have $ D to spend on pastries at Tatte. In the
Problem Tatte Like Latte Part One points
You have $ to spend on pastries at Tatte. In the bakery display, you see exactly one of each item
each has a price listed next to it and you've personally assigned a rating of as well. You want
to spend your money in an optimal way, ie you want to maximize the sum of ratings on your
items without going over $
Here are the items you can buy, along with their prices and your individual ratings:
a What would an optimal solution be if you have $ to spend? What is the value of that solution
ie what is the sum of all the ratings
Solution:
b Going by ratings largest to smallest what would a Greedy solution be assuming you have
$ to spend? Is it an an optimal solution?
Solution:
c In some versions of this problem, we compute the ratio of value ranking to weight price as
shown in the table below. Using the ratingperdollar as the way each item is evaluated, what
would a Greedy solution be assuming you have $ to spend? Is it an an optimal solution?
Solution:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
