Suppose you and your friend Alanis live together with n - 2 other people at a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Suppose you and your friend Alanis live together with n - 2 other people at a popular "cooperative" apartment. Over the next n nights, each of you is supposed to cook dinner for the co-op exactly once, so some one cooks on each of the nights. To make things interesting, everyone has scheduling conflicts with some of the nights (e.g., exams, deadlines at work, basketball games, etc.), so deciding who should cook on which night becomes a tricky task. For concreteness, let's label the people {p1,... Pn} and the nights {d₁,..., dn}. Then for person pi, associate a set of nights S; C {d₁,..., dn} when there are not available to cook. A feasible dinner schedule is defined to be an assignment of each person in the co-op to a different night such that each person cooks on exactly one night, there is there is someone to cook on each night, and if p, cooks on night dj, then d; & S₁. (a) [10 points] Describe a bipartite graph G such that G has a perfect matching if and only if there is a feasible dinner schedule for the co-op. (b) [10 points] Your friend Alanis 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 work for the day. Unfortunately, when you look at the schedule she created, you notice a big problem-n-2 of the people at the co-op are assigned to different nights on which they are available (no problem there), but for the other two people p, and p,, and the other two days d and di, you discover she has accidentally assigned both p; and p; to cook on night d and no one to cook on night d. You want to fix this schedule but without having to recompute everything from scratch. Show that it is possible, using her "almost correct" schedule, to decide in only O(n²) time whether there exists a feasible dinner schedule for the co-op. If one exists, your algorithm should also provide that schedule. Prove the correctness of your solution. Suppose you and your friend Alanis live together with n - 2 other people at a popular "cooperative" apartment. Over the next n nights, each of you is supposed to cook dinner for the co-op exactly once, so some one cooks on each of the nights. To make things interesting, everyone has scheduling conflicts with some of the nights (e.g., exams, deadlines at work, basketball games, etc.), so deciding who should cook on which night becomes a tricky task. For concreteness, let's label the people {p1,... Pn} and the nights {d₁,..., dn}. Then for person pi, associate a set of nights S; C {d₁,..., dn} when there are not available to cook. A feasible dinner schedule is defined to be an assignment of each person in the co-op to a different night such that each person cooks on exactly one night, there is there is someone to cook on each night, and if p, cooks on night dj, then d; & S₁. (a) [10 points] Describe a bipartite graph G such that G has a perfect matching if and only if there is a feasible dinner schedule for the co-op. (b) [10 points] Your friend Alanis 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 work for the day. Unfortunately, when you look at the schedule she created, you notice a big problem-n-2 of the people at the co-op are assigned to different nights on which they are available (no problem there), but for the other two people p, and p,, and the other two days d and di, you discover she has accidentally assigned both p; and p; to cook on night d and no one to cook on night d. You want to fix this schedule but without having to recompute everything from scratch. Show that it is possible, using her "almost correct" schedule, to decide in only O(n²) time whether there exists a feasible dinner schedule for the co-op. If one exists, your algorithm should also provide that schedule. Prove the correctness of your solution.
Expert Answer:
Related Book For
Handbook Of Principles Of Organizational Behavior Indispensable Knowledge For Evidence Based Managem
ISBN: 9780470740941
2nd Edition
Authors: Edwin Locke
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
In April 1992, EuroDisney SCA opened its doors to European visitors. Located by the river Marne some 20 miles east of Paris, it was designed to be the biggest and most lavish theme park that Walt...
-
ABS plastic is a tough, hard plastic used in applications requiring shock resistance. The polymer consists of three monomer units: acrylonitrile (C3H3N), butadiene (C4H6, and styrene (C8H8). a. Draw...
-
How much must be deposited now at 5.25% interest to produce $300 at the end of ~very year for 10 years?
-
Fred and Ethel are married with two children and plan to file jointly. a. Their taxable income sources were as follows. Wages and Salaries $42,381 Interest and Dividend Income ..$ 1,215 Capital Gains...
-
Can you present a graphic that presents the payroll disbursement amounts by date for the contact employee who has been terminated but has been paid after termination (i.e., ghost employees)?
-
Milano Corporation has three operating divisions and requires a 12% return on all investments. Selected information is presented here: Required: a. Calculate the missing amounts for each division. b....
-
8. A marine biologist measures the presence of a pollutant in an ocean and concludes that the concentration, C, in parts per million (ppm), as a function of the population, P, of the people who visit...
-
The following selected accounts and their current balances appear in the ledger of Kanpur Co. for the fiscal year ended June 30, 20Y5: Instructions 1. Prepare a multiple-step income statement. 2....
-
Find the magnetization M in a magnetic material where: (a) = 1.8 x 10 -5 H/m and H = 120 A/m; (b) r = 22, there are 8.3 x 10 28 atoms/m 3 , and each atom has a dipole moment of 4.5 x 10 -27 Am 2 ;...
-
Problem Statement: The aim of this case study is to propose a daily capacity level and level of resourcing required for Q2 & Q3 2023. The proposed daily capacity level should achieve the highest...
-
Proactive Action is an Australian firm, which works for proactive workplace mental health safety for construction industry employees. Write a brief report explaining the general overview of the firm,...
-
Murray made a list of 20 needs (primary, secondary, reactive, and proactive needs) that people have in their lives. Design a list of five (5) secondary needs you believe people need. Now justify your...
-
Drone technology has been growing for several years now and a company which can cheaply and easily deliver goods to your doorstep could be a worthy counterpart to delivery trucks. What do you think?...
-
Suppose that the functions p and q are defined as follows. p(x)=-x q(x)=2x +2 Find the following. (ap)(-1)= [] (pa) (-1)= X
-
Find the level of effective rate of interest over a four-year period which is equivalent to an effective rate of interest of 5% in the first year, nominal interest rate of discount 6% convertible...
-
Subprime loans have higher loss rates than many other types of loans. Explain why lenders offer subprime loans. Describe the characteristics of the typical borrower in a subprime consumer loan.
-
Form groups of 4 6 members and talk about the following in small - group discussions, then report the results of these discussions back to the entire class in a large - group discussion: 1. Thinking...
-
Another useful exercise is to ask individuals to rate their own performance. Using the performance appraisal instrument at your current employer (or former place of employment, or the instrument...
-
One valuable exercise for teaching students about trust requires them to consider how they themselves weigh information on ability, benevolence, and integrity. Students should try to think of a...
-
You throw a ball straight up with an initial speed of \(10 \mathrm{~m} / \mathrm{s}\). (a) What is the ball's instantaneous acceleration at instant \(t_{1}\), just after it leaves your hand; at...
-
Figure P3.76 shows graphs of the \(x\) component of acceleration as a function of time for two different carts rolling along a flat horizontal table. In which case is the change in the \(x\)...
-
You hold a puck at the top of an ice-covered ramp inclined at \(60^{\circ}\) with respect to the vertical. Your friend stands nearby on level ground and holds a ball at the same height \(h\) above...
Study smarter with the SolutionInn App