Docsity

Perfect Matching - Advanced Algorithms - Exam, Exams of Advanced Algorithms

Toggle sidebar
bg1
HW 1: due Thurs, Jan 27
1. Prove that every tree has at most 1 perfect matching.
2. Let Bbe a k-regular bipartite graph (i.e. all vertices have the same
degree). Prove that Bmust have a perfect matching.
3. Let G= (X, Y ) be a bipartite simple graph with |X|=|Y|=n, and
X=x1. . . xn,Y=y1,...yn. Define the matrix A= (aij ) by
aij =(1,if xiyjโˆˆE(G)
0,otherwise
Please show the following.
(a) Give an example of a bipartite graph Gfor which the determinant
of Ais not 0.
(b) Prove that if Ghas no perfect matching, then det Ais 0.
(c) Show that the converse is false, i.e. there are graphs with perfect
matchings, for which the determinant of Ais 0.
(d) Is there a polynomial time algorithm that determines if a bipartite
graph has an odd number of perfect matchings?
4. Give an example of the stable matching problem with 2 men and 2
women in which there is more than one stable matching.
5. The stable roomates problem is the same as the stable marriage prob-
lem, when we remove the restriction that the graph be bipartite and
individuals rank all others as acceptable roomates in order of prefer-
ence. Construct an example set of preferences where there is no stable
solution.

Partial preview of the text

Download Perfect Matching - Advanced Algorithms - Exam and more Exams Advanced Algorithms in PDF only on Docsity!

HW 1: due Thurs, Jan 27

  1. Prove that every tree has at most 1 perfect matching.
  2. Let B be a k-regular bipartite graph (i.e. all vertices have the same degree). Prove that B must have a perfect matching.
  3. Let G = (X, Y ) be a bipartite simple graph with |X| = |Y | = n, and X = x 1... xn, Y = y 1 ,... yn. Define the matrix A = (aij ) by

aij =

{ 1 , if xiyj โˆˆ E(G) 0 , otherwise

Please show the following.

(a) Give an example of a bipartite graph G for which the determinant of A is not 0. (b) Prove that if G has no perfect matching, then det A is 0. (c) Show that the converse is false, i.e. there are graphs with perfect matchings, for which the determinant of A is 0. (d) Is there a polynomial time algorithm that determines if a bipartite graph has an odd number of perfect matchings?

  1. Give an example of the stable matching problem with 2 men and 2 women in which there is more than one stable matching.
  2. The stable roomates problem is the same as the stable marriage prob- lem, when we remove the restriction that the graph be bipartite and individuals rank all others as acceptable roomates in order of prefer- ence. Construct an example set of preferences where there is no stable solution.