chapter

    Hierarchical Clustering and Linkage Methods Practice Questions for Gate Da

    Solve 305+ Hierarchical Clustering and Linkage Methods practice questions for GATE DA with answers and detailed solutions. Free sample questions below.

    Try a question

    Answer it here to see how it works. Nothing is recorded until you sign in.

    Question 1
    Level 1: Warm-up

    Four points in 3D space are given: , , , and . Using Manhattan distance, what is the minimum distance among all unique pairs of these points?

    Question 2
    Level 1: Warm-up

    Two data points in a 3D space are given as and . What is the Manhattan distance between them?

    Question 3
    Level 1: Warm-up

    When calculating the distance between two points with -coordinates and , which of the following is the correct evaluation of the absolute difference for the -component?

    Question 4
    Level 1: Warm-up

    Four points in 3D space are given as , , , and . If hierarchical agglomerative clustering is performed using the Euclidean distance metric, which pair of points will be merged first?

    Question 5
    Level 1: Warm-up

    In a dataset of 4 distinct points, a student computes the distance between every possible ordered pair of points (including each point with itself) and finds the minimum value to be 0. If the non-zero distances in their list are 4, 5, 6, 7, 8, and 9, what is the actual distance at which the first merge occurs?

    Question 6
    Level 1: Warm-up

    Three points in 3D space are given as , , and . If hierarchical clustering is performed using the Euclidean distance metric, which pair of points will be merged first?

    Question 7
    Level 1: Warm-up

    A student computes the distance matrix for 3 distinct points and lists all 9 entries, including self-pairs. They claim that all 9 entries represent valid merges. What is the actual minimum number of merge steps required to reduce 3 distinct points into a single cluster?

    Question 8
    Level 1: Warm-up

    Assertion (A): Single Linkage clustering is prone to the chaining effect, often resulting in elongated, non-compact clusters.

    Reason (R): Complete Linkage avoids this effect and produces compact clusters because it squares the pairwise distances, changing the unit from length to area and thereby forcing points to be closer.

    Question 9
    Level 1: Warm-up

    Let and be two clusters. The pairwise distances between the points are and .

    What is the value of the dissimilarity ?

    Question 10
    Level 1: Warm-up

    Consider 3 distinct points with pairwise distances: , , and .

    Under Single Linkage clustering, match each pair of points with the merge height at which they FIRST belong to the same cluster.

    List I

    (P) and

    (Q) and

    (R) and

    List II

    (1) 2

    (2) 3

    (3) 5

    Free preview ends here

    Login to view the complete practice questions and solutions

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Explore complete test series, official past papers, and chapter-wise study tools.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Hierarchical Clustering and Linkage Methods Practice Questions for GATE DA

    Solve 305+ Hierarchical Clustering and Linkage Methods practice questions for GATE DA with answers and detailed solutions. Free sample questions below.

    Chapter Roadmap: Hierarchical Clustering

    Chapter Journey: Hierarchical Clustering
    1
    Distance Metrics & First Merge
    Euclidean, Manhattan, Minkowski. How do we measure similarity between two points?
    2
    Linkage Methods
    Single, Complete, Average, Ward’s. How do we measure distance between clusters?
    3
    Dendrograms
    Visualizing the hierarchy. Reading the tree.
    4
    Cutting the Tree
    Deciding the optimal number of clusters .

    The Core Idea: Agglomerative Clustering

    Agglomerative Hierarchical Clustering

    Intuition: Start with points, each as its own cluster. Merge the nearest pair. Repeat until one cluster remains.
    The Process:
    • Compute pairwise distances between all points.
    • Find the pair with the minimum distance.
    • Merge them into a new cluster.
    • Update the distance matrix (this is where Linkage Methods come in).
    • Repeat steps 2-4.
    Note: This topic focuses on Step 1 and 2: Distance Metrics and identifying the First Merge.

    Hierarchical Clustering and Linkage Methods: Solved Questions with Step-by-Step Explanations (10 Problems)

    Question 1 · Machine Learning MCQ

    Four points in 3D space are given: , , , and . Using Manhattan distance, what is the minimum distance among all unique pairs of these points?

    1. A.

      1

    2. B.

      0

    3. C.

      2

    4. D.

      3

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: The first merge occurs at the minimum distance among all unique pairs. Self-pairs are not considered.

    Step 1: List the unique pairs and their Manhattan distances:

    Step 2: Identify the minimum distance from the unique pairs: .

    Answer: 1

    Question 2 · Machine Learning MCQ

    Two data points in a 3D space are given as and . What is the Manhattan distance between them?

    1. A.

      10

    2. B.

      34

    3. C.

      6

    4. D.

      14

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: The Manhattan distance in 3D is the sum of absolute differences of their coordinates.

    Step 1: Identify the coordinates: and .

    Step 2: Apply the Manhattan distance formula: .

    Step 3: Substitute the values: .

    Step 4: Calculate each term: .

    Answer: 10

    Question 3 · Machine Learning MCQ

    When calculating the distance between two points with -coordinates and , which of the following is the correct evaluation of the absolute difference for the -component?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: When subtracting coordinates, the negative sign of the coordinate must be kept inside the absolute value bars until the end.

    Step 1: Set up the subtraction: .

    Step 2: Apply the absolute value: .

    Step 3: Evaluate inside the bars: .

    Answer:

    Question 4 · Machine Learning MCQ

    Four points in 3D space are given as , , , and . If hierarchical agglomerative clustering is performed using the Euclidean distance metric, which pair of points will be merged first?

    1. A.

      and

    2. B.

      and

    3. C.

      and

    4. D.

      and

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: The first merge occurs between the pair with the strictly smallest Euclidean distance.

    Step 1: Calculate the Euclidean distance for the relevant pairs.

    Step 2: Compare the distances. Since , the minimum distance is between and .

    Answer: and

    Question 5 · Machine Learning MCQ

    In a dataset of 4 distinct points, a student computes the distance between every possible ordered pair of points (including each point with itself) and finds the minimum value to be 0. If the non-zero distances in their list are 4, 5, 6, 7, 8, and 9, what is the actual distance at which the first merge occurs?

    1. A.

      0

    2. B.

      4

    3. C.

      5

    4. D.

      9

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: The first merge in hierarchical clustering occurs between two distinct points. Self-pairs (distance 0) are never considered for merging.

    Step 1: The student included self-pairs, which trivially have a distance of 0.

    Step 2: Exclude the self-pairs and look at the distances between distinct points.

    Step 3: The non-zero distances are 4, 5, 6, 7, 8, and 9.

    Step 4: The minimum of these distinct pair distances is 4.

    Answer: 4

    Question 6 · Machine Learning MCQ

    Three points in 3D space are given as , , and . If hierarchical clustering is performed using the Euclidean distance metric, which pair of points will be merged first?

    1. A.

    2. B.

    3. C.

    4. D.

      All merge simultaneously

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: The first merge occurs between the pair with the strictly smallest Euclidean distance.

    Step 1: Calculate the Euclidean distance for all unique pairs.

    Step 2: Compare the distances. Since , the minimum distance is between and .

    Answer:

    Question 7 · Machine Learning MCQ

    A student computes the distance matrix for 3 distinct points and lists all 9 entries, including self-pairs. They claim that all 9 entries represent valid merges. What is the actual minimum number of merge steps required to reduce 3 distinct points into a single cluster?

    1. A.

      1

    2. B.

      2

    3. C.

      3

    4. D.

      9

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: Hierarchical clustering reduces the number of clusters by exactly 1 at each merge step. Self-pairs are never merged.

    Step 1: Start with 3 distinct points (3 clusters).

    Step 2: Each merge reduces the cluster count by 1.

    Step 3: To reach 1 cluster, we need merges.

    Answer: 2

    Question 8 · Machine Learning MCQ

    Assertion (A): Single Linkage clustering is prone to the chaining effect, often resulting in elongated, non-compact clusters.

    Reason (R): Complete Linkage avoids this effect and produces compact clusters because it squares the pairwise distances, changing the unit from length to area and thereby forcing points to be closer.

    1. A.

      Both A and R are true and R is the correct explanation of A.

    2. B.

      Both A and R are true but R is NOT the correct explanation of A.

    3. C.

      A is true but R is false.

    4. D.

      A is false but R is true.

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: Single Linkage suffers from chaining, while Complete Linkage produces compact clusters by using the maximum distance, not by squaring distances.

    Step 1: Evaluate Assertion (A): Single Linkage uses the minimum distance between clusters, which can cause it to merge clusters based on a single close pair, leading to elongated, stringy shapes (chaining effect). Thus, A is true.

    Step 2: Evaluate Reason (R): Complete Linkage uses the maximum distance between clusters. It does not square the distances to change units. The claim about changing units from length to area is a mathematical fallacy and does not explain compactness. Thus, R is false.

    Answer: A is true but R is false.

    Question 9 · Machine Learning MCQ

    Let and be two clusters. The pairwise distances between the points are and .

    What is the value of the dissimilarity ?

    1. A.

      4

    2. B.

      5

    3. C.

      9

    4. D.

      13

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: is the formal definition of Complete Linkage, which takes the maximum distance between any pair of points across the two clusters.

    Step 1: Identify the distances between points in and . These are and .

    Step 2: Apply the formula for .

    Step 3: Calculate .

    Answer: 9

    Question 10 · Machine Learning MCQ

    Consider 3 distinct points with pairwise distances: , , and .

    Under Single Linkage clustering, match each pair of points with the merge height at which they FIRST belong to the same cluster.

    List I

    (P) and

    (Q) and

    (R) and

    List II

    (1) 2

    (2) 3

    (3) 5

    1. A.

      P-1, Q-2, R-2

    2. B.

      P-1, Q-2, R-3

    3. C.

      P-1, Q-3, R-2

    4. D.

      P-2, Q-3, R-3

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: In Single Linkage, the merge height between two clusters is the minimum distance between any point in the first cluster and any point in the second.

    Step 1: The smallest distance is . So and merge first at height 2. Thus, P matches with 1.

    Step 2: The new cluster is . The distance from to under Single Linkage is .

    Step 3: The cluster merges with at height 3. At this point, and are in the same cluster, and and are in the same cluster.

    Step 4: Thus, Q matches with 2, and R matches with 2.

    Answer: P-1, Q-2, R-2

    More practice questions in this unit