Skip to content
Official PYQ · 2001

GATE CS 2001 Q2.15 — Graphs: Connectivity, Matching, Colouring

Explain with AI

How many undirected graphs (not necessarily connected) can be constructed out of a given set V={v1,v2,…vn}V=\{v_1, v_2, \dots v_n\} of nn vertices?

Choose one option
View worked solution

Answer: D

To find the number of undirected graphs that can be constructed from a given set of nn vertices, we consider the possible edges between these vertices:

  1. Total possible edges: In an undirected graph with nn vertices, any pair of distinct vertices can form an edge. The number of ways to choose a pair of vertices from nn vertices is given by: (n2)=n(n−1)2\binom{n}{2} = \frac{n(n-1)}{2} This represents the maximum number of possible edges in a simple undirected graph of size nn.
  2. Constructing a graph: For each of these n(n−1)2\frac{n(n-1)}{2} possible edges, we have exactly 22 choices:
    • The edge is present in the graph.
    • The edge is absent from the graph.
  3. Total number of graphs: Since the choice for each edge is independent, the total number of distinct undirected graphs is: 2×2×⋯×2(n(n−1)2 times)=2n(n−1)22 \times 2 \times \dots \times 2 \quad \left(\frac{n(n-1)}{2} \text{ times}\right) = 2^{\frac{n(n-1)}{2}}

Therefore, the correct option is D.

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

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