Skip to content
Official PYQ · 2004

GATE CS 2004 Q81 — Graphs: Connectivity, Matching, Colouring

Explain with AI

Let G1=(V,E1)G_1=(V,E_1) and G2=(V,E2)G_2 =(V,E_2) be connected graphs on the same vertex set VV with more than two vertices. If G1∩G2=(V,E1∩E2)G_1 \cap G_2= (V,E_1\cap E_2)  is not a connected graph, then the graph G1∪G2=(V,E1∪E2)G_1\cup G_2=(V,E_1\cup E_2)

Choose one option
View worked solution

Answer: B

We can prove that G1∪G2G_1 \cup G_2 must contain a cycle using proof by contradiction:

  1. Assume G1∪G2G_1 \cup G_2 has no cycles.
  2. Since G1G_1 is a connected spanning subgraph of G1∪G2G_1 \cup G_2, the graph G1∪G2G_1 \cup G_2 must also be connected.
  3. A connected graph with no cycles is a tree. Thus, G1∪G2G_1 \cup G_2 is a tree.
  4. Any connected spanning subgraph of a tree TT must be the tree TT itself. Since G1G_1 and G2G_2 are connected spanning subgraphs of G1∪G2G_1 \cup G_2, we must have: G1=G1∪G2andG2=G1∪G2G_1 = G_1 \cup G_2 \quad \text{and} \quad G_2 = G_1 \cup G_2 This implies G1=G2G_1 = G_2.
  5. If G1=G2G_1 = G_2, then their intersection is G1∩G2=G1G_1 \cap G_2 = G_1, which is connected. This directly contradicts the given condition that G1∩G2G_1 \cap G_2 is not connected.

Therefore, our assumption is false, and G1∪G2G_1 \cup G_2 must have a cycle.

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

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