Gradient LabSign up free

Home / GATE DA / 2024 / Q.42

GATE DA 2024, Q.42: Single-linkage dendrogram for five points

Machine learningSingle-linkage clustering2 marksMCQFree

The question

A distance matrix is given for five points x1 to x5: x1–x2 = 1, x4–x5 = 1, x3–x4 = 2, and x1–x4 = x2–x3 = x2–x5 = 3, with every other pair farther apart. Single-linkage agglomerative clustering is applied. Which dendrogram (options A to D, shown as figures in the paper) is produced?

This question uses a figure in the official paper. The four options are dendrogram images; the distance matrix is given in the question text. Option images not readable through the text fetch. See the official paper.

Solve it step by step

  1. The rule. Single linkage measures the distance between two groups by their closest pair of points, and always merges the two closest groups.
  2. Merges at distance 1. x1 joins x2 and x4 joins x5. Both pairs tie at the smallest distance.
  3. Merge at distance 2. x3 joins {x4, x5}, because the closest pair is x3–x4 = 2.
  4. Final merge at distance 3. {x1, x2} joins {x3, x4, x5}. The closest cross pairs, x1–x4, x2–x3 and x2–x5, are all 3.
  5. Match the figure. The dendrogram with merges at 1, 1, 2, 3 in that structure is option A.

Answer: Option A

Official IISc Bengaluru answer key: A.

Common mistake. Using the farthest pair between groups. That is complete linkage, and it would put the last merge at x1–x5 = 6.

Remember. Single linkage: distance between groups = their closest pair of points. Complete linkage: their farthest pair.

Linkage came back in GATE DA 2025 as a multiple-select question on which distance single and complete linkage use.

See it move

Learn the idea behind this question in the free animated lesson Hierarchical clustering, then k-means.

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 sheets

Source: official GATE DA 2024 question paper and answer key (IISc Bengaluru). The question is lightly reworded; every number and option is kept.