Unsupervised Learning Algorithms and Task Matching Short Notes for Gate Da
Unsupervised Learning Algorithms and Task Matching short notes for GATE DA: 2 study cards covering concepts, formulas, shortcuts and exam traps, plus solved p
Unsupervised Learning Algorithms and Task Matching short notes
Quick Reference: Task to Algorithm Cheat Sheet
Final Exam Cheat Sheet
Quick reference for task-to-algorithm mapping.
Task
Keywords
Go-To Algorithms
Key Constraint
Clustering
Group, segment, partition
K-Means, DBSCAN, Hierarchical, GMM
Shape, known K, data type
Dim. Reduction
Compress, visualize, latent
PCA, t-SNE, UMAP
Linear vs non-linear, global vs local
Association
Market basket, rules
Apriori, FP-Growth
Dataset size, support/confidence
Anomaly
Outliers, fraud, defects
Isolation Forest, LOF, One-Class SVM
Dimensionality, anomaly proportion
Density
Distribution, likelihood
GMM, KDE
Parametric vs non-parametric
Final Revision: Algorithm Quick-Check
Algorithm Quick-Check
Algorithm
Type
Strength
Weakness
K-Means
Unsupervised Clustering
Fast, scalable
Sensitive to outliers
K-Medoids
Unsupervised Clustering
Robust to outliers
Slower, expensive
LDA
Supervised Classification
Maximizes separation
Requires labels
PCA
Unsupervised Reduction
Preserves variance
Linear only
MCMC
Sampling
Complex distributions
Slow convergence
DBSCAN
Unsupervised Clustering
Arbitrary shapes
Varying densities
Final Tip: When in doubt, ask: "Does this algorithm require labels?"
Try a question
Answer it here to see how it works. Nothing is recorded until you sign in.
Question 1
Level 1: Warm-up
Assertion (A): K-Medoids is generally preferred over K-Means for clustering a dataset of geographic locations on the Earth's surface represented by latitude and longitude coordinates.
Reason (R): K-Medoids can utilize the Haversine distance metric (measuring great-circle distance in kilometers), whereas standard K-Means relies on computing the arithmetic mean which is mathematically invalid for unconstrained spherical coordinates.
Options:
Question 2
Level 1: Warm-up
Consider the following list of 6 machine learning algorithms: K-Means, Linear Discriminant Analysis (LDA), K-Nearest Neighbors (KNN), Principal Component Analysis (PCA), DBSCAN, and Support Vector Machines (SVM). Let U be the number of strictly unsupervised algorithms in this list, and S be the number of strictly supervised algorithms. What is the value of U−S?
Question 3
Level 1: Warm-up
Consider the following statements regarding multi-select task-algorithm matching in machine learning:
Statement 1: In a multi-select matching question, an algorithm like Principal Component Analysis (PCA) can be correctly matched to multiple distinct tasks (e.g., 'Dimensionality Reduction' and 'Noise Reduction') if both tasks are present in the task list.
Statement 2: For an explicitly defined 'unsupervised clustering' task, the number of valid algorithm matches from a given list is strictly bounded above by the count of unsupervised clustering algorithms in that list, regardless of the dataset's characteristics or the presence of labels.
Which of the statements given above is/are correct?
Question 4
Level 1: Warm-up
Which of the following statements correctly describe the mathematical objectives and label requirements of the listed algorithms, allowing for the elimination of paradigm mismatches?
Question 5
Level 1: Warm-up
Consider the following statements about task-algorithm matching in machine learning:
Statement 1: An unsupervised task like clustering can be correctly matched to LDA if the goal is to maximize class separability.
Statement 2: PCA can be matched to both dimensionality reduction and noise reduction tasks.
Statement 3: Both K-Means and DBSCAN can be valid matches for a clustering task depending on the data shape.
Which of the above statements is/are TRUE?
Question 6
Level 1: Warm-up
A dataset X has d=50 original features. Principal Component Analysis (PCA) is applied to project the data into a lower-dimensional space. If the projection matrix W is formed by the eigenvectors corresponding to the largest eigenvalues of the covariance matrix, and the transformed dataset retains k=3 principal components, how many columns does the projection matrix W have?
Question 7
Level 1: Warm-up
A 1-dimensional dataset consists of the points {2,4,6,8,10}. The K-Medoids algorithm selects the medoid as the point that minimizes the sum of absolute distances to all other points in the dataset. What is the maximum absolute distance from the selected medoid to any other point in this dataset?
Question 8
Level 1: Warm-up
A student is matching 3 tasks to algorithms and assigning a score: +1 for a correct match, and -1 for an incorrect match.
Task 1: Clustering → K-Means
Task 2: Classification → LDA
Task 3: Sampling → PCA
The student calculates their score as 1+1+1=3 due to a sign error on the incorrect match. What is the correct score?
Question 9
Level 1: Warm-up
A student evaluates a list of 7 machine learning algorithms: PCA, LDA, K-Means, KNN, MCMC, SVM, and Random Forest. They calculate a "supervised index" using the formula:
Index=(Count of Supervised Algorithms)−(Count of Unsupervised Algorithms)
The student correctly identifies the paradigms of all algorithms but makes a sign error by computing (Count of Unsupervised)−(Count of Supervised) instead.
What is the correct supervised index for this list of algorithms?
Question 10
Level 1: Warm-up
Consider the following statements regarding algorithm objectives and data requirements:
Statement 1: Principal Component Analysis (PCA) seeks to maximize the variance of projected data without requiring class labels.
Statement 2: Linear Discriminant Analysis (LDA) seeks to maximize class separation and requires labeled data.
Statement 3: K-Means clustering minimizes variance within clusters and requires class labels to initialize centroids.
Which of the above statements is/are true?
Free preview ends here
Login to view the complete short notes
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.
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.
Unsupervised Learning Algorithms and Task Matching Short Notes for GATE DA
Unsupervised Learning Algorithms and Task Matching short notes for GATE DA: 2 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice questions.
Quick Reference: Task to Algorithm Cheat Sheet
Final Exam Cheat Sheet
Quick reference for task-to-algorithm mapping.
Task
Keywords
Go-To Algorithms
Key Constraint
Clustering
Group, segment, partition
K-Means, DBSCAN, Hierarchical, GMM
Shape, known K, data type
Dim. Reduction
Compress, visualize, latent
PCA, t-SNE, UMAP
Linear vs non-linear, global vs local
Association
Market basket, rules
Apriori, FP-Growth
Dataset size, support/confidence
Anomaly
Outliers, fraud, defects
Isolation Forest, LOF, One-Class SVM
Dimensionality, anomaly proportion
Density
Distribution, likelihood
GMM, KDE
Parametric vs non-parametric
Final Revision: Algorithm Quick-Check
Algorithm Quick-Check
Algorithm
Type
Strength
Weakness
K-Means
Unsupervised Clustering
Fast, scalable
Sensitive to outliers
K-Medoids
Unsupervised Clustering
Robust to outliers
Slower, expensive
LDA
Supervised Classification
Maximizes separation
Requires labels
PCA
Unsupervised Reduction
Preserves variance
Linear only
MCMC
Sampling
Complex distributions
Slow convergence
DBSCAN
Unsupervised Clustering
Arbitrary shapes
Varying densities
Final Tip: When in doubt, ask: "Does this algorithm require labels?"
Unsupervised Learning Algorithms and Task Matching: Solved Questions with Step-by-Step Explanations (10 Problems)
Question 1 · Machine LearningMCQ
Assertion (A): K-Medoids is generally preferred over K-Means for clustering a dataset of geographic locations on the Earth's surface represented by latitude and longitude coordinates.
Reason (R): K-Medoids can utilize the Haversine distance metric (measuring great-circle distance in kilometers), whereas standard K-Means relies on computing the arithmetic mean which is mathematically invalid for unconstrained spherical coordinates.
Options:
A.
A is true but R is false
B.
A is false but R is true
C.
Both A and R are true and R is the correct explanation of A
D.
Both A and R are true but R is not the correct explanation of A
Correct Answer:
C
Step-by-Step Solution
Key idea: K-Medoids is robust to arbitrary distance metrics, while K-Means requires a valid Euclidean space to compute meaningful means.
Step 1: Evaluate Assertion (A). Geographic coordinates lie on a sphere. K-Medoids selects actual data points and works with any valid distance metric (like Haversine). K-Means computes the arithmetic mean of coordinates, which for spherical data results in a point inside the Earth, not on the surface. Thus, K-Medoids is preferred. Assertion (A) is True.
Step 2: Evaluate Reason (R). The Haversine formula correctly computes distances on a sphere. Standard K-Means relies on Euclidean distance and the arithmetic mean. The arithmetic mean of latitude/longitude is invalid for spherical geometry without complex 3D re-projection. Reason (R) is True.
Step 3: Check if R explains A. The inability of K-Means to handle the spherical metric/mean correctly is exactly why K-Medoids (which avoids the mean entirely) is preferred. R is the correct explanation of A.
Answer: Both A and R are true and R is the correct explanation of A
Question 2 · Machine LearningMCQ
Consider the following list of 6 machine learning algorithms: K-Means, Linear Discriminant Analysis (LDA), K-Nearest Neighbors (KNN), Principal Component Analysis (PCA), DBSCAN, and Support Vector Machines (SVM). Let U be the number of strictly unsupervised algorithms in this list, and S be the number of strictly supervised algorithms. What is the value of U−S?
A.
2
B.
0
C.
-2
D.
4
Correct Answer:
B
Step-by-Step Solution
Key idea: The fastest way to eliminate distractors in task-algorithm matching is to check the paradigm: does the algorithm require labels?
Step 1: Classify each algorithm in the list.
K-Means: Unsupervised (Clustering)
LDA: Supervised (Classification/Dimensionality Reduction with labels)
Consider the following statements regarding multi-select task-algorithm matching in machine learning:
Statement 1: In a multi-select matching question, an algorithm like Principal Component Analysis (PCA) can be correctly matched to multiple distinct tasks (e.g., 'Dimensionality Reduction' and 'Noise Reduction') if both tasks are present in the task list.
Statement 2: For an explicitly defined 'unsupervised clustering' task, the number of valid algorithm matches from a given list is strictly bounded above by the count of unsupervised clustering algorithms in that list, regardless of the dataset's characteristics or the presence of labels.
Which of the statements given above is/are correct?
A.
Both 1 and 2
B.
1 only
C.
2 only
D.
Neither 1 nor 2
Correct Answer:
A
Step-by-Step Solution
Key idea: Multi-select matching requires checking for one-to-many mappings and strictly enforcing paradigm constraints.
Step 1: Evaluate Statement 1. PCA is widely used for both dimensionality reduction (preserving variance) and noise reduction (discarding low-variance components). Thus, it can validly match multiple tasks. Statement 1 is True.
Step 2: Evaluate Statement 2. The task is explicitly 'unsupervised clustering'. By definition, unsupervised tasks do not use labels. Therefore, any supervised algorithm (even if the dataset happens to have labels available) is an invalid match for an unsupervised task constraint. The valid matches are strictly bounded by the unsupervised algorithms available. Statement 2 is True.
Step 3: Both statements are correct.
Answer: Both 1 and 2
Question 4 · Machine LearningMSQ
Which of the following statements correctly describe the mathematical objectives and label requirements of the listed algorithms, allowing for the elimination of paradigm mismatches?
A.
Principal Component Analysis (PCA) is unsupervised and seeks to maximize the variance of the projected data.
B.
Linear Discriminant Analysis (LDA) is unsupervised and seeks to maximize the variance of the projected data.
C.
K-Means is unsupervised and seeks to minimize the variance within clusters.
D.
Markov Chain Monte Carlo (MCMC) is a supervised algorithm that requires class labels for sampling.
Correct Answer:
["A","C"]
Step-by-Step Solution
Key idea: Eliminate paradigm mismatches by verifying if an algorithm is supervised (requires labels) or unsupervised (no labels), and checking its core mathematical objective.
Step 1: PCA is unsupervised (no labels required) and its objective is to maximize the variance of the projected data. (Option A is correct).
Step 2: LDA is supervised (requires labels) and its objective is class separation, not variance maximization. (Option B is incorrect due to wrong paradigm and wrong formula).
Step 3: K-Means is unsupervised (no labels required) and seeks to minimize the variance within clusters. (Option C is correct).
Step 4: MCMC is an unsupervised sampling method used for complex distributions and does not require class labels. (Option D is incorrect due to wrong paradigm).
Answer: A, C
Question 5 · Machine LearningMCQ
Consider the following statements about task-algorithm matching in machine learning:
Statement 1: An unsupervised task like clustering can be correctly matched to LDA if the goal is to maximize class separability.
Statement 2: PCA can be matched to both dimensionality reduction and noise reduction tasks.
Statement 3: Both K-Means and DBSCAN can be valid matches for a clustering task depending on the data shape.
Which of the above statements is/are TRUE?
A.
Statement 1 only
B.
Statements 2 and 3 only
C.
Statements 1 and 3 only
D.
All three statements
Correct Answer:
B
Step-by-Step Solution
Key idea: This is a bounding question testing the constraints of algorithm matching, specifically the supervised/unsupervised paradigm and multi-select logic.
Step 1: Evaluate Statement 1:
"An unsupervised task like clustering can be correctly matched to LDA if the goal is to maximize class separability."
- LDA (Linear Discriminant Analysis) is a supervised algorithm. It requires class labels to maximize class separability.
- An unsupervised task like clustering does not have labels. Therefore, LDA cannot be used.
- Statement 1 is FALSE.
Step 2: Evaluate Statement 2:
"PCA can be matched to both dimensionality reduction and noise reduction tasks."
- PCA preserves maximum variance (dimensionality reduction).
- By keeping only the principal components, it effectively filters out noise (noise reduction).
- Statement 2 is TRUE.
Step 3: Evaluate Statement 3:
"Both K-Means and DBSCAN can be valid matches for a clustering task depending on the data shape."
- K-Means is good for spherical clusters.
- DBSCAN is good for arbitrary shapes and density-based clusters.
- Both are valid clustering algorithms for different data shapes.
- Statement 3 is TRUE.
Step 4: Combine the results:
Statements 2 and 3 are TRUE.
Answer: Statements 2 and 3 only
Question 6 · Machine LearningMCQ
A dataset X has d=50 original features. Principal Component Analysis (PCA) is applied to project the data into a lower-dimensional space. If the projection matrix W is formed by the eigenvectors corresponding to the largest eigenvalues of the covariance matrix, and the transformed dataset retains k=3 principal components, how many columns does the projection matrix W have?
A.
3
B.
47
C.
50
D.
150
Correct Answer:
A
Step-by-Step Solution
Key idea: The dimensions of the PCA projection matrix are strictly determined by the original feature space and the number of retained components.
Step 1: The covariance matrix of the original data has dimensions d×d, yielding d eigenvectors.
Step 2: Each eigenvector is a column vector of size d×1.
Step 3: To project the data into a k-dimensional space, we select the top k eigenvectors and place them side-by-side to form the projection matrix W.
Step 4: Therefore, W has dimensions d×k. The number of columns is exactly k.
Answer: 3
Question 7 · Machine LearningMCQ
A 1-dimensional dataset consists of the points {2,4,6,8,10}. The K-Medoids algorithm selects the medoid as the point that minimizes the sum of absolute distances to all other points in the dataset. What is the maximum absolute distance from the selected medoid to any other point in this dataset?
A.
2
B.
8
C.
4
D.
10
Correct Answer:
C
Step-by-Step Solution
Key idea: K-Medoids selects an actual data point as the center, unlike K-Means which computes a virtual mean.
Step 1: Calculate the sum of absolute distances from each candidate point to all other points in {2,4,6,8,10}.
From 2: ∣2−2∣+∣4−2∣+∣6−2∣+∣8−2∣+∣10−2∣=0+2+4+6+8=20
From 4: 2+0+2+4+6=14
From 6: 4+2+0+2+4=12
From 8: 6+4+2+0+2=14
From 10: 8+6+4+2+0=20
Step 2: The minimum sum is 12, which occurs at the point 6. Thus, the medoid is 6.
Step 3: Calculate the absolute distances from the medoid (6) to all other points: ∣6−2∣=4, ∣6−4∣=2, ∣6−8∣=2, ∣6−10∣=4.
Step 4: The maximum of these distances is 4.
Answer: 4
Question 8 · Machine LearningNAT
A student is matching 3 tasks to algorithms and assigning a score: +1 for a correct match, and -1 for an incorrect match.
Task 1: Clustering → K-Means
Task 2: Classification → LDA
Task 3: Sampling → PCA
The student calculates their score as 1+1+1=3 due to a sign error on the incorrect match. What is the correct score?
Correct Answer:
1.00
Step-by-Step Solution
Key idea: This is a casework question testing the supervised vs unsupervised paradigm check.
Step 1: Evaluate each match based on the paradigm:
Task 1 (Clustering) → K-Means: K-Means is unsupervised clustering. Correct match (+1).
Task 2 (Classification) → LDA: LDA is supervised classification. Correct match (+1).
Task 3 (Sampling) → PCA: PCA is unsupervised dimensionality reduction, not sampling. Incorrect match (-1).
Step 2: Calculate the correct score:
Correct score = (+1)+(+1)+(−1)=1.
Answer: 1.00
Question 9 · Machine LearningNAT
A student evaluates a list of 7 machine learning algorithms: PCA, LDA, K-Means, KNN, MCMC, SVM, and Random Forest. They calculate a "supervised index" using the formula:
Index=(Count of Supervised Algorithms)−(Count of Unsupervised Algorithms)
The student correctly identifies the paradigms of all algorithms but makes a sign error by computing (Count of Unsupervised)−(Count of Supervised) instead.
What is the correct supervised index for this list of algorithms?
Correct Answer:
1.00
Step-by-Step Solution
Key idea: This is a casework question testing the supervised vs unsupervised paradigm check for a list of algorithms.
Step 1: Classify each algorithm based on whether it requires class labels:
PCA: Unsupervised (dimensionality reduction, no labels)
Random Forest: Supervised (classification, requires labels)
Step 2: Count the algorithms in each paradigm:
Supervised: LDA, KNN, SVM, Random Forest (Total = 4)
Unsupervised: PCA, K-Means, MCMC (Total = 3)
Step 3: Calculate the correct index using the given formula:
Correct Index = (Count of Supervised) - (Count of Unsupervised) = 4 - 3 = 1.
(Note: The student's sign error would yield 3 - 4 = -1, but the question asks for the correct index).
Answer: 1.00
Question 10 · Machine LearningMCQ
Consider the following statements regarding algorithm objectives and data requirements:
Statement 1: Principal Component Analysis (PCA) seeks to maximize the variance of projected data without requiring class labels.
Statement 2: Linear Discriminant Analysis (LDA) seeks to maximize class separation and requires labeled data.
Statement 3: K-Means clustering minimizes variance within clusters and requires class labels to initialize centroids.
Which of the above statements is/are true?
A.
Statement 1 only
B.
Statements 1 and 2 only
C.
Statements 2 and 3 only
D.
All statements are true
Correct Answer:
B
Step-by-Step Solution
Key idea: This is a statement evaluation question testing the objective and data requirements of specific algorithms.
Step 1: Analyze Statement 1. PCA is an unsupervised dimensionality reduction technique that maximizes the variance of projected data. It does not require labels. (True)
Step 2: Analyze Statement 2. LDA is a supervised technique that maximizes class separation. It explicitly requires labeled data to compute class means and scatter matrices. (True)
Step 3: Analyze Statement 3. K-Means is an unsupervised clustering algorithm that minimizes variance within clusters. It does NOT require class labels to initialize centroids; random or heuristic initialization is used. (False)
Step 4: Conclude that only Statements 1 and 2 are true.