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

MCQ · 2 marks · Problem ML-CLUS-0023

Consider the table below, where the \((i, j)^{\text {th }}\) element of the table is the distance between points \(x_{i}\) and \(x_{j}\). Single linkage clustering is performed on data points, \(x_{1}, x_{2}, x_{3}, x_{4}, x_{5}\).\[\begin{array}{|c|c|c|c|c|c|} \hline & x_{1} & x_{2} & x_{3} & x_{4} & x_{5} \\ \hline x_{1} & 0 & 1 & 4 & 3 & 6 \\ \hline x_{2} & 1 & 0 & 3 & 5 & 3 \\ \hline x_{3} & 4 & 3 & 0 & 2 & 5 \\ \hline x_{4} & 3 & 5 & 2 & 0 & 1 \\ \hline x_{5} & 6 & 3 & 5 & 1 & 0 \\ \hline \end{array}\]Which ONE of the following is the correct representation of the clusters produced?
Diagram
  1. A
    A
  2. B
    B
  3. C
    C
  4. D
    D

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

Show the worked solutionSingle linkage merges the two clusters with the smallest minimum pairwise distance.Step 1 (distance 1): merge \(\{x_1,x_2\}\) and \(\{x_4,x_5\}\).Step 2: \(d(x_3,\{x_4,x_5\})=\min(2,5)=2\), \(d(\{x_1,x_2\},x_3)=\min(4,3)=3\), \(d(\{x_1,x_2\},\{x_4,x_5\})=3\). Merge \(x_3\) into \(\{x_4,x_5\}\) at height 2.Step 3 (distance 3): merge \(\{x_1,x_2\}\) with \(\{x_3,x_4,x_5\}\).The dendrogram has \(x_1x_2\) and \(x_4x_5\) as the first pairs, with \(x_3\) joining \(x_4x_5\) before the final merge: diagram (A).Answer: A

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