patternMinor
Number of Matchings in a Bipartite
Viewed 0 times
bipartitematchingsnumber
Problem
Given two sets A and B of sizes |A| = n and |B| = m, where m >= n.
There are edges from set A to set B.
I need to find the
Is it possible to caclulate this quantity ?
(I have very little knowledge of Graph Thory and Bipartite Matching or how it is computed)
There are edges from set A to set B.
I need to find the
number of matchings where all of vertices in set A have been matched with one vertex in set B.Is it possible to caclulate this quantity ?
(I have very little knowledge of Graph Thory and Bipartite Matching or how it is computed)
Solution
A matching in which all the vertices in $A$ are matched is known as a perfect matching. When $n = m$, you need to compute the permanent of the bipartite adjacency matrix (defined in the same way as the determinant, only without the signs). This is conjectured to be rather difficult unfortunately, even in this special case in which the matrix in question is zero-one. The permanent-vs.-determinant question is analogous to the more famous P-vs.-NP question.
When $m > n$, you can add $m-n$ dummy vertices to $A$ and connect them to all vertices in $B$. The number of perfect matchings in the new graph is exactly $(m-n)!$ times the number of perfect matchings in the old graph.
When $m > n$, you can add $m-n$ dummy vertices to $A$ and connect them to all vertices in $B$. The number of perfect matchings in the new graph is exactly $(m-n)!$ times the number of perfect matchings in the old graph.
Context
StackExchange Computer Science Q#19275, answer score: 6
Revisions (0)
No revisions yet.