GATE / CS ARCHIVE

GATE CSE 2026 SET 2 / QUESTION 36

Edge-disjoint spanning trees and Jaccard similarity

Discrete Mathematics · Trees & Connectivity · Full GATE CSE 2026 Set 2 paper

GATE 2026 Set 2, Q36 2 marks · MCQ
Report issue

Trees & Connectivity

Question 36, GATE 2026: For the complete graph K_n with n>4, represent spanning trees by their edge sets. Jaccard similarity is |T1∩T2|/|T1∪T2|. Find the minimum possible value: A 1/n; B 1/(2n−3); C 0; D 1/(n−1).
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Givens and goal

For the complete graph Kn with n>4, represent spanning trees by their edge sets. Jaccard similarity is |T1∩T2|/|T1∪T2|. Find the minimum possible value: A 1/n; B 1/(2n−3); C 0; D 1/(n−1).

Approach

Prove a lower bound and construct two trees attaining it.

Step-by-step solution

1. Cardinalities are nonnegative and the union of spanning trees is nonempty, so Jaccard similarity cannot be below 0. To attain 0 we need trees sharing no edge.
2. Label vertices 1,…,n. Choose T1 as the path 1−2−3−…−n, with edge set {(i,i+1):1≤i<n}. It is connected and has n−1 edges.
3. Choose T2 with edges {(1,j):3≤j≤n} together with (2,4). Vertices 1,3,…,n are connected through vertex 1, and vertex 2 joins through 4. There are (n−2)+1=n−1 edges; a connected graph on n vertices with n−1 edges is a tree.
4. No edge (1,j) for j≥3 is a consecutive-vertex edge of T1, and (2,4) is not consecutive either. Thus the two edge sets are disjoint, although they have the same vertex set.
5. The intersection has size 0 and the union size 2n−2, giving 0/(2n−2)=0. This attains the lower bound, so C. The completeness of Kn guarantees all constructed edges exist.

Original paper, page 24 · Answer key