How does single linkage differ from complete linkage when merging clusters?

Last updated 11 November 2026

The two methods define the distance between clusters differently:

  • Single linkage uses the closest pair of points across the two clusters (min).

  • Complete linkage uses the farthest pair (max).

So single linkage merges clusters that touch anywhere, while complete linkage merges them only when the whole union stays compact.

  • Single linkage: d(A,B) = min d(a,b):

    • It can follow elongated or non-convex shapes, such as rings and spirals.

    • It suffers from chaining: noise points can bridge distinct clusters into one long cluster.

    • It is equivalent to building a minimum spanning tree and cutting its longest edges, which makes it efficient (O(n²)).

  • Complete linkage: d(A,B) = max d(a,b):

    • It favors compact, roughly spherical clusters of similar diameter.

    • It resists chaining.

    • It is sensitive to outliers, because one far point inflates the distance.

    • It can split large natural clusters.

  • Effect on the dendrogram:

    • Single linkage gives low, compressed merge heights with a skewed, staircase-like tree.

    • Complete linkage gives more balanced trees with clearer gaps.

  • Rule of thumb:

    • Use single linkage for shape and connectivity-based structure in clean data.

    • Use complete linkage when you want tight, well-bounded groups.

  • https://www.geeksforgeeks.org/machine-learning/ml-types-of-linkages-in-clustering/
  • https://python.plainenglish.io/clustering-101-mastering-linkage-methods-in-hierarchical-clustering-part-4-5-6a7f7e9dad12
  • https://scikit-learn.org/stable/auto_examples/cluster/plot_linkage_comparison.html
All Clustering interview questions