GATE DA 2026, Q.36: Which two points merge first
The question
Points P1 = [2, 3, −1], P2 = [3, 1, 1], P3 = [5, −2, 3], P4 = [3, 3, 3]. Hierarchical agglomerative clustering with Manhattan distance: which two points merge first?
- (A) P1, P2
- (B) P2, P3
- (C) P3, P4
- (D) P2, P4
Watch it solved
Solve it step by step
- Rule. Agglomerative clustering first merges the closest pair.
- Manhattan distances. P1–P2 = 5, P1–P3 = 12, P1–P4 = 5, P2–P3 = 7, P2–P4 = 0 + 2 + 2 = 4, P3–P4 = 7.
- Smallest. P2–P4 = 4 merges first.
Answer: (D) P2, P4
Official IIT Guwahati answer key: D.
Common mistake. Using Euclidean distance out of habit; P1–P2 then looks closest (3 vs 2.83 for P2–P4 is close, so a slip flips it).
Remember. Manhattan distance = sum of absolute coordinate differences.
See it move
Learn the idea behind this question in the free animated lesson Hierarchical clustering, then k-nearest neighbours.
Want every question solved? The past-paper pack has all 195 questions from 2024, 2025 and 2026 for ₹499. The cheat sheet pack has 23 printable sheets for ₹399.
See the past-paper pack See the cheat sheetsSource: official GATE DA 2026 question paper and answer key (IIT Guwahati). The question is lightly reworded; every number and option is kept.