Let 4 points in 3D: P1 = [2,3,4,], P2 = [3,1,1], P3 = [5, -2, 3] ,P4 = [3,3,3]. Hierarchical Agglomerative clustering is used to cluster the above points. If Manhattan Distance is used as the distance metric during clustering, which two points will be merged first?
Correct Answer :
P2P4
Solution :
The correct option is P2P4.
Hierarchical Agglomerative Clustering starts by treating each data point as a single cluster. At each step, it merges the two closest clusters. Since Manhattan distance is specified as the distance metric, we need to calculate the Manhattan distance between the pairs of points to find the pair with the smallest distance.
The Manhattan distance between two points and in 3D space is calculated using the formula:
Let's calculate the Manhattan distances for the pairs given in the options:
1. For the pair P1 and P2:
2. For the pair P2 and P3:
3. For the pair P2 and P4:
4. For the pair P3 and P4:
Comparing the calculated Manhattan distances for the given choices, the distance between P2 and P4 is the smallest (equal to 4). Thus, the pair P2P4 has the highest similarity among the options and will be merged first.
Access expert-curated educational resources and study materials—completely free.
Create, conduct, and manage professional online assessments with Mindyard. Perfect for teachers and institutes.
Copyright © 2026 Mindyard. All Rights Reserved.