Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Shutter Talk's office space has a shared kitchen facility. Unfortunately, it's early days, and there is not yet sufficient funding to hire staff responsible
Shutter Talk's office space has a shared kitchen facility. Unfortunately, it's early days, and there is not yet sufficient funding to hire staff responsible for keeping the kitchen cleaned up. Therefore, the first task for the newbie (that's you!) is to design an algorithm to assign each of the n members of Shutter Talk's technical staff into a kitchen patrol rotation. Specifically, your job is to create an n day rotation for the days {d, d2,..., dn} in which each staff member is responsible for kitchen patrol exactly once. There's a wrinkle, of course; a given staff member is not available every day, either because of vacation or because of important technical deadlines. That is, for each member of the staff, {81, 82,...,sn}, there is a subset of the days when the staff member is not available for kitchen patrol. You have these "vacation" days accessible to you before starting your algorithm. A feasible schedule is an assignment of each member of the staff to perform kitchen patrol on one of the n days such that the staff member is available on the scheduled day. (a) [15 points] Describe a polynomial time algorithm that determines whether such a feasible schedule is possible and, if it is, outputs the schedule. (b) [5 points] Give an asymptotically tight upper bound on the runtime of your algorithm. Briefly explain.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
a Polynomial Time Algorithm To determine whether a feasible schedule is possible and generate the sc...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