Mathematics | Independent Sets, Covering and Matching (original) (raw)

Last Updated : 11 Jul, 2025

Mathematics | Independent Sets, Covering and Matching

**1. Independent Sets

For above given graph G, Independent sets are:

I1 = {1}, I2 = {2}, I3 = {3}, I4 = {4}
I5 = {1, 3} and I6 = {2, 4}

Therefore, the maximum number of non-adjacent vertices i.e Independence number α

0

(G) = 2.

**2. Vertex Covering

For above given graph G, Vertex cover is:

V1 = {1, 3}, V2 = {2, 4},
V3 = {1, 2, 3}, V4 = {1, 2, 3, 4}, etc.

Therefore, minimum number of vertices which can cover all edges, i.e., Vertex covering number β

0

(G) = 2.

**Notes -

**Edge Covering -

For above given graph G, Edge cover is:

E1 = {a, b, c, d},
E2 = {a, d} and E3 = {b, c}.

Therefore, minimum number of edges which can cover all vertices, i.e., Edge covering number β

1

(G) = 2.

**Note -

For any graph G, α

1

(G) + β

1

(G) = n, where n is number of vertices in G.

**3. Matching -

For above given graph G, Matching are:

M1 = {a}, M2 = {b}, M3 = {c}, M4 = {d}
M5 = {a, d} and M6 = {b, c}

Therefore, maximum number of non-adjacent edges i.e matching number α

1

(G) = 2.

**Complete Matching:

A matching of a graph G is complete if it contains all of G'svertices. Sometimes this is also called a perfect matching.

**HALL’S MARRIAGE THEOREM:

The bipartite graph G =(V, E) with bipartition (V1, V2) has a complete matching from V1 to V2 if and only if |N (A)| > |A| for all subsets A of V1. (This is both necessary and sufficient condition for complete matching.)

Solved Examples

Example 1: Finding an Independent Set

**Problem: Find an independent set in the following graph G:

**Solution: Independent sets: I1={1}, I2={2}, I3={3}, I4={4}, I5={1,3}, I6={2,4}.
Maximum independent set: I5={1,3}or I6={2,4}
Independence number: α0(G)=2

Example 2: Finding a Vertex Cover

**Problem: Find a vertex cover in the same graph G:

**Solution: Vertex covers: V1={1,3}, V2={2,4}, V3={1,2,3}, V4={1,2,3,4}.
Minimum vertex cover: V1={1,3} or V2={2,4}
Vertex covering number: β0(G)=2

Practice Problems