Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Acme food truck produces a large variety of different lunch menu items. Unfortunately, they can only produce their foods in limited quantities, so they

The Acme food truck produces a large variety of different lunch menu items. Unfortunately, they can only produce their foods in limited quantities, so they often run out of popular items, making customers sad. To minimize sadness, Acme Foods is implementing a sophisticated lunch-ordering system. Customers text in their acceptable choices before lunch time. Then they can use an algorithm to preassign lunches to customers. Customers who do not get one of their choices should receive a $10 voucher. Acme Foods would like to minimize the number of vouchers they give out. Give an efficient algorithm for Acme Foods to assign lunches to customers. In general, suppose that, on a given day, Acme Foods has produced m types of food items b1, . . . , bm, and the quantity of each type of food item bj is exactly qj . Suppose that n customers a1, . . . , an text in their preferences, where each customer ai submits a set Ai of one or more acceptable lunch choices. The algorithm should assign each customer either one of his/her choices or a $10 voucher. It should minimize the number of vouchers. What is the running time of your algorithm?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions