Skip to content
Official PYQ · 2006

GATE CS 2006 Q73 — Graphs: Connectivity, Matching, Colouring

Explain with AI

The 2n2^n  vertices of a graph GG corresponds to all subsets of a set of size nn, for n≥6n \geq 6.  Two vertices of GG are adjacent if and only if the corresponding sets intersect in exactly two elements.

The number of connected components in GG is:

Choose one option
View worked solution

Answer: B

Let the universal set be S={1,2,…,n}S = \{1, 2, \dots, n\} with n≥6n \geq 6. The vertices of the graph GG correspond to all 2n2^n subsets of SS. Two vertices (subsets) AA and BB are adjacent if and only if ∣A∩B∣=2|A \cap B| = 2.

We can analyze the connectivity of the vertices based on their subset sizes:

  1. The Empty Set ({}\{ \}): Since the empty set has size 00, its intersection with any other subset has size 00. Thus, it has no neighbors and forms 11 isolated component.
  2. Singleton Sets ({i}\{i\}): For any singleton set, its intersection with any other subset can have a size of at most 11. Thus, none of the nn singletons can have an intersection of size 22 with any set. Each singleton forms an isolated vertex, giving nn isolated components.
  3. Subsets of size ≥2\geq 2: All remaining subsets of size 22 or greater form a single connected component.
    To see this, any subset AA of size ≥2\geq 2 contains at least one pair of elements, say {a,b}⊆A\{a, b\} \subseteq A. Since ∣A∩{a,b}∣=2|A \cap \{a, b\}| = 2, AA is adjacent to the size-2 vertex {a,b}\{a, b\}. Furthermore, any two size-2 vertices {a,b}\{a, b\} and {c,d}\{c, d\} can be connected via an intermediate vertex of size 44 (for example, {a,b,c,d}\{a, b, c, d\} if they are disjoint, which is always possible since n≥6n \geq 6). Thus, all subsets of size ≥2\geq 2 are mutually reachable.

Summing these up, the total number of connected components in GG is:

Total Components=1 (empty set)+n (singletons)+1 (subsets of size ≥2)=n+2\text{Total Components} = 1 \text{ (empty set)} + n \text{ (singletons)} + 1 \text{ (subsets of size } \geq 2\text{)} = n + 2

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Graphs: Connectivity, Matching, Colouring questions