edited by
50,363 views
60 votes
60 votes

How many perfect matching are there in a complete graph of $6$ vertices?

  1. $15$
  2. $24$
  3. $30$
  4. $60$
edited by

10 Answers

Best answer
83 votes
83 votes
Perfect matching is a set of edges such that each vertex appears only once and all vertices appear at least once (EXACTLY one appearance). So for $n$ vertices perfect matching will have $n/2$ edges and there won't be any perfect matching if $n$ is odd.

For $n = 6$, we can choose the first edge in ${}^6C_2=15$ ways, second in ${}^4C_2= 6$ ways and third in ${}^2C_2 = 1$ way. So, total number of ways $= 15\times 6=90$. But perfect matching being a set, order of elements is not important. i.e., the $3!$ permutations of the $3$ edges are same only. So, total number of perfect matching $=\frac{90}{3!}= \frac{90}{6} = 15$.

Alternatively we can also say there are $3$ identical buckets to be filled from $6$ vertices such that $2$ should go to each of them. Now the first vertex can combine with any of the other $5$ vertices and go to bucket $1- 5$ ways. Now only $4$ vertices remain and $2$ buckets. We can take one vertex and it can choose a companion in $3$ ways and go to second bucket- $3$ ways. Now only a single bucket and $2$ vertices remain. so just $1$ way to fill the last one. So total ways$=5\times 3=15.$

Correct Answer: $A$
edited by
50 votes
50 votes

Note: To understand the solution please go through the definitions of perfect matching

The complete graph $k_{n}$ have a perfect matching only when n is even. So let $n=2m.$ 

Let the vertices be $V_{1} , V_{2},\ldots ,V_{2m}$.    

$v_{1}$ can be joined to any other $\left(2m-1\right)$ vertices.

$v_{2}$ can be joined to any other $\left(2m-3\right)$ vertices.

Similarly, go till $V_{2m}$ which will have only one vertex to be joined with.

No. of Perfect matches$= (2m-1)(2m-3)(2m-5)\ldots(3)(1)$

In the above question $2m=6.$

So, No. of perfect matches = $5\times 3\times 1=15.$

edited by
24 votes
24 votes

For a graph with odd number of vertices we cannot have a perfect matching.

If there are $2n$ vertices in a complete graph we can surely find a perfect matching for it.

to find perfect matching we need to group vertices of the graph into disjoint sets of 2 vertices. doing so we are able to pull out an edge from the graph which is between those 2 vertices of a set. also, the set is disjoint so pulling out an edge will select only distinct vertices each time, till all vertices are covered. 

this will give rise to n sets each of 2 vertices.

Now, the problem is reduced to a combinatorics problem of distributing $2n$ vertices into $n$ sets, each of 2 vertices. also, these $n$ sets are indistinguishable as they contain same number of elements so, counting all ways by which we can do that is given by:$$\frac{(2n)!}{(2!)^n\ n!}$$

here, $2n=6$ so, answer = 15.

edited by
6 votes
6 votes

$\underline{\textbf{Objective}}:$ Find number of perfect matchings in $K_{n}$

$\underline{\textbf{Definition}}:$ Given graph $G = (V,E)$, a perfect matching in graph $G$ is a subset $M$ of edge set $E$, such that $\forall_{v \in V} \exists_{u \in V-v} \exists_{p \in V-u-v}\ (v,u) \in M \land (v,p) \not \in M \land (u,p) \not \in M$     

$\underline{\textbf{Observations}}:$ 

  1. $^{n}C_2$ total edges in $K_{n}$
  2. For perfect matching we would need $\frac{n}{2}$ edges
  3. We can't have fractional edges, hence when $n$ is odd, we won't have perfect matching. 
  4. No two edges should have same vertex
  5. All edges should cover all the vertices
  6. Every vertex has degree $n-1$

$\underline{\textbf{Algorithm}}:$ 

Total Edges = nC2
For loop 1:n/2:
    Find a random edge e=(u,v) from total edges
    total edges = remove every edge incident on u and v

This is a way to find one such subset $M$. Finding the count of such subsets will give us final answer.

$\underline{\textbf{Solution}}:$

Finding first edge will take $^{^{n}C_2}C_1 = ^{n}C_2$ ways 
Total edges would now be = $^{n}C_2 - (n-2)-(n-2)-1 = ^{n}C_2 -2n +3 = ^{n-2}C_2$ 
It would be isomorphic to $K_{n-2}$

Finding second edge will take $^{n-2}C_2$ ways 
Total edges would now be = $^{n-2}C_2 - (n-2-2)-(n-2-2)-1 = ^{n-2}C_2 -2n+7 = ^{n-4}C_2$ 
and so on.

total ways of finding edges = $^{n}C_2 \times ^{n-2}C_2 \times \dots \times ^2C_2 = \prod_\limits{i=0}^{n/2-1} \ ^{n-2i}C_2 = \dfrac{n!}{2^\frac{n}{2}}$   
This accounts for order of chosen edges, but $M$ is set, order doesn't matter. So we will divide by ($\frac{n}{2}!$). 

Final Solution, when $n$ is even,
$$\dfrac{(n)!}{2^\frac{n}{2}\frac{n}{2}!}$$
perfect matchings are there. 

 


 

For $n=6$, there are in total $15$ perfect matchings.

$\textbf{Option (A)} \text{ is correct}$.

Answer:

Related questions

65 votes
65 votes
9 answers
1
Kathleen asked Sep 17, 2014
15,622 views
A graph $G=(V,E)$ satisfies $\mid E \mid \leq 3 \mid V \mid - 6$. The min-degree of $G$ is defined as $\min_{v\in V}\left\{ \text{degree }(v)\right \}$. Therefore, min-d...
65 votes
65 votes
5 answers
2
3 votes
3 votes
0 answers
3
admin asked Dec 15, 2022
384 views
Count the number of perfect matchings in the bipartite graph whose adjacency matrix $\text{A}$ is as follows.\[\left[\begin{array}{lll}1 & 1 & 0 \\0 & 1 & 1 \\1 & 1 & 1\e...
4 votes
4 votes
2 answers
4