Question: % Problem 1 begin { tcolorbox } [ title = { Problem 1 ( Alice ' s party, 3 0 pts ) } ]
Problem begintcolorboxtitleProblem Alices party, ptssetlengthparindentem Alice organizes a party and is deciding which of her $n$ friends to invite. She wants to have that for each person at the party there are at least $$ other people they know and at least $$ other people they do not know. Give a greedy strategy for finding the maximal number of friends she can invite and a corresponding guest list given a list of all pairs of people that know each other. Prove that your strategy finds the guest list of maximal size and analyze its runtime. For full credit, your algorithm should run in polynomial time. it Hint: In greedy examples we have seen so far, we greedily built up a solution from scratch. Here, you should instruct Alice to greedily cross people off her list.endtcolorbox
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
