Question: It assesses the learning outcome: Understand the common complexity classes. A workshop organiser is trying to distribute people into groups so that no group has
It assesses the learning outcome:
Understand the common complexity classes.
A workshop organiser is trying to distribute people into groups so that no group has two people who have previously worked together. There's a limit on the number of groups that can be created because each group will be in a separate room. The organiser knows who has worked with whom. Can she distribute the participants as required? The general problem is as follows.
Function:workshop groups
Input: people, an undirected graph; number of groups, an integer
Preconditions: people has n nodes; number of groups n
Output: ok a Boolean
Postconditions: ok is true if and only if the set of nodes of people can be divided into number of groups subsets so that neighbouring nodes are in different subsets.
Here is an example graph, with nodes representing people and edges representing work relations.
If number of groups is then ok false, because the people cant be put in the same group. However, for number of groups ok is true: A and C are one group; E and B are another; and D is the third group. Another possible grouping would be A and E are the first group, C and D are the second, and B is the third.
Prove that this decision problem is in class NP by answering the following parts.
Q Describe a certificate for a problem instance a graphpeopleand an integernumber of groups that has a true output. Give as example a certificate for the graph above andnumber of groups
QExplain why certificates for this problem can be verified in polynomial time. In other words, briefly explain what the verifier does, givenpeoplenumber of groups and the corresponding certificate, and why it takes polynomial time.
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
