Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started