Question: 5 We Are Cooking! ( 1 0 points ) Suppose you and your friend Jamie live, together with n - 2 other people, at a
We Are Cooking! points
Suppose you and your friend Jamie live, together with other people, at a popular offcampus cooperative apartment, the Academy on Charles. Over the next nights, each of you is supposed to cook dinner for the coop exactly once, so that someone cooks on each of the nights.
Of course, everyone has scheduling conflicts with some of the nights eg exams, concerts, etc. so deciding who should cook on which night becomes a tricky task. For concreteness, let's label the people
dots,
the nights
dots,
and for person there's a set of nights subdots, when they are not able to cook.
A feasible dinner schedule is an assignment of each person in the coop to a different night, so that each person cooks on exactly one night, there is someone cooking on each night, and if cooks on night then
a Describe a bipartite graph so that has a perfect matching if and only if there is a feasible dinner schedule for the coop
b Your friend Jamie takes on the task of trying to construct a feasible dinner schedule. After great effort, she constructs what she claims is a feasible schedule and then heads off to class for the day.
Unfortunately, when you look at the schedule she created, you notice a big problem. of the people at the coop are assigned to different nights on which they are available: no problem there. But for the other two people, and and the other two days, and you discover that she has accidentally assigned both and to cook on night and assigned no one to cook on night
You want to fix Jamie's mistake but without having to recompute everything from scratch. Show that it's possible, using her "almost correct" schedule, to decide in only time whether there exists a feasible dinner schedule for the coopIf one exists, you should also output it
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
