Answered step by step
Verified Expert Solution
Question
1 Approved Answer
a) Suppose that there are 4 students, {A,B,C,D}, and 2 graduation projects, {q,r}. Each student x specifies a set P(x) of projects to work on.
a) Suppose that there are 4 students, {A,B,C,D}, and 2 graduation projects, {q,r}. Each student x specifies a set P(x) of projects to work on. For each project y, its supervisor specifies a set S(y) of students to work with: A:{q,r}B:{r}C:{q,r}D:{r}q:{A,C}r:{B,C,D} Explain (step by step, showing each iteration) how the Edmonds-Karp algorithm can be used to assign projects to the maximum number of students, such that the following conditions hold: - no student is matched to two different projects, - no project is assigned to two different students, - no student x is matched to a project that is not in P(x), and - no project y is assigned to a student that is not in S(y). ) What is the worst-case asymptotic time complexity of using the Edmonds-Karp algorithm to assign m students to m projects, subject to the conditions in (a) above? Please explain. c) Prove that the following problem is NP-hard: Given a graph G and a positive integer k, is there a spanning tree of G that contains at most k leaves
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started