翻译以下问题:Suppose you and your k − 1 housemates decide to throw a party. Unfortunately,…
- User
翻译以下问题:Suppose you and your k − 1 housemates decide to throw a party. Unfortunately, there seems to be little agreement on who should be invited, and you don’t want to invite more people than can fit in your house. Since you’re the only one in the house who can get the DVD player to work, the task of resolving this problem has been left to you. In total, your house can hold n people (in addition to you and your housemates). Each housemate i gives you a list Pi of people she would like to have invited to the party. Depending on how much you like housemate i, you pick an integer mi indicating the minimum number of people on i’s list that you’ll invite. Having selected these values mi already, you’d like to know whether it is possible to invite at most n people to your party such that for each housemate i, at least mi of the people in Pi are invited. We call this the Party Invitation problem. Prove that Party Invitation is NP-Complete.
- Assistant
假设你和其他k-1个室友决定举行派对。不幸的是,在谁应该被邀请方面似乎很少达成一致意见,而你不想邀请超过房子容纳人数的人数。由于你是唯一一个能使DVD播放器正常工作的人,因此解决这个问题的任务就交给了你。总的来说,你们的房子可以容纳n个人(除了你和室友)。每个室友i都会给你一个她想邀请参加派对的人员名单Pi。根据你对室友i的喜欢程度,你选择一个整数mi,表示你将邀请i名单中最少的人数。在已经选择这些mi的情况下,你想知道是否可能邀请最多n人参加你的派对,以使对于每个室友i,至少有Pi中的mi人会被邀请。我们称这个问题为Party Invitation问题。证明Party Invitation问题是NP-Complete的。