GATE DA 2026 · Hierarchical Clustering (Top-down & Bottom-up)

MCQ · 1 mark · Problem ML-CLUS-0012

Let four points in three-dimensional space be: \(P_1 = [2,3,-1]\), \(P_2 = [3,1,1]\), \(P_3 = [5,-2,3]\) and \(P_4 = [3,3,3]\). Hierarchical Agglomerative Clustering is used to cluster these points. If Manhattan Distance is used as the distance metric during clustering, which of the following options indicates the two points that will be merged first?
  1. A
    \(P_1, P_2\)
  2. B
    \(P_2, P_3\)
  3. C
    \(P_3, P_4\)
  4. D
    \(P_2, P_4\)

Solve it on GATE DA practice →More Unsupervised Learning — Clustering problems

Show the worked solution\[\boxed{d_1(\mathbf u,\mathbf v)=\sum_i|u_i-v_i|}\]Agglomerative clustering first merges the closest pair of points. The Manhattan distances are\[\begin{array}{c|cccccc}\text{pair} & P_1P_2 & P_1P_3 & P_1P_4 & P_2P_3 & P_2P_4 & P_3P_4\\\hline d_1 & 5 & 12 & 5 & 7 & 4 & 7\end{array}\]The smallest is \(d_1(P_2,P_4)=|3-3|+|1-3|+|1-3|=4\), so \(P_2\) and \(P_4\) are merged first.Answer: D

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com