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?
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.
Completely free for students. Educators & coaching institutes get 2 months free Pro trial to create tests.
Access unlimited practice questions, detailed step-by-step solutions, and exam study materials — completely free for students.
Create and conduct professional online assessments with AI question generation, tab proctoring, and comprehensive batch management.
Prepare for GATE 2026 Civil Engineering with the latest question papers, previous year papers, detailed solutions, syllabus, exam pattern, preparation tips, mock tests, and subject-wise study material. Download GATE 2026 CE question papers with solutions in PDF format and boost your preparation for top engineering institutes and PSU recruitment.
Prepare effectively for GATE 2026 Electronics & Communication Engineering (EC) with this comprehensive Question Paper with Solutions. This resource includes detailed explanations, concept-wise solutions, previous year paper analysis, and exam-oriented practice to help aspirants strengthen core subjects like Electronic Devices, Analog Circuits, Digital Circuits, Signals & Systems, Network Theory, Control Systems, Electromagnetics, Communications, and more. Perfect for revision, self-assessment, and boosting your GATE 2026 EC preparation strategy.
Copyright © 2026 Combe Labs Private Limited. All Rights Reserved.