Skip to content
Official PYQ · 2026

GATE CS 2026 Set 2 Q26 — Graphs: Connectivity, Matching, Colouring

Explain with AI

Consider a complete graph KnK_{n} with nn vertices ( n>4n>4 ). Note that multiple spanning trees can be constructed over KnK_{n}. Each of these spanning trees is represented as a set of edges. The Jaccard coefficient between any two sets is defined as the ratio of the size of the intersection of the two sets to the size of the union of the two sets.

Which one of the following options gives the lowest possible value for the Jaccard coefficient between any two spanning trees of KnK_{n} ?

Choose one option
View worked solution

Answer: C

To find the lowest possible value of the Jaccard coefficient between any two spanning trees of KnK_n, let us analyze the definition of the Jaccard coefficient.

Let T1T_1 and T2T_2 be two spanning trees of KnK_n. Each spanning tree has exactly n−1n-1 edges. The Jaccard coefficient between their edge sets E(T1)E(T_1) and E(T2)E(T_2) is defined as:

J(T1,T2)=∣E(T1)∩E(T2)∣∣E(T1)∪E(T2)∣J(T_1, T_2) = \frac{|E(T_1) \cap E(T_2)|}{|E(T_1) \cup E(T_2)|}

Since the sizes of sets are non-negative, the minimum possible value of the Jaccard coefficient is 00. This minimum is achieved if and only if there exist two spanning trees T1T_1 and T2T_2 that are completely edge-disjoint, meaning:

∣E(T1)∩E(T2)∣=0|E(T_1) \cap E(T_2)| = 0

Existence of Edge-Disjoint Spanning Trees

According to the Tutte-Nash-Williams theorem, a complete graph KnK_n contains exactly ⌊n/2⌋\lfloor n/2 \rfloor edge-disjoint spanning trees.

Given that n>4n > 4 (i.e., n≥5n \ge 5):

⌊n/2⌋≥⌊5/2⌋=2\lfloor n/2 \rfloor \ge \lfloor 5/2 \rfloor = 2

This guarantees that for any n>4n > 4, KnK_n contains at least 22 edge-disjoint spanning trees. Let these two trees be T1T_1 and T2T_2. Since they share no edges:

  • ∣E(T1)∩E(T2)∣=0|E(T_1) \cap E(T_2)| = 0
  • ∣E(T1)∪E(T2)∣=2(n−1)|E(T_1) \cup E(T_2)| = 2(n-1)

Thus, the Jaccard coefficient is:

J(T1,T2)=02n−2=0J(T_1, T_2) = \frac{0}{2n-2} = 0

Therefore, the lowest possible value for the Jaccard coefficient is 0.

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

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