CS-503-B CD-503-B Pattern Recognition

Pattern Recognition Important Questions

RGPV · B.Tech · CSE · Semester 5 · Current scheme · 3 papers (2020 to 2023)

  1. Read the answers

    Start with the topics that come every year.

  2. Revise unit notes

    Go through each unit once to score more.

Paperwala Imp Topics - Pattern Recognition important questions

Download Paperwala Imp Question & Answer (PDF)

Counted from the questions in the past papers listed on this site. Repeated = how many times the topic came in those papers.

Pattern Recognition important questions with answers

Each answer starts with the short answer. Then come the points to write, a diagram and an exam tip. The questions under each topic are copied from the RGPV papers.

Q1. K-nearest neighbour: KNN rule, estimation and a worked example

Asked 7 times in 2020, 2023, 2024, 2025 · Unit 2

From the papers

  • “How does K-Nearest Neighbor works? Explain with KNN estimation and KNN rules.” (2020, 2023)
  • “Explain K-Nearest Neighbour (KNN) classifier and the role of distance metrics.” (2025)
  • “Given Class A: (1,2), (2,3), (3,3) and Class B: (7,6), (8,7), (9,8), classify (4,4) using KNN with K=3 and Euclidean distance.” (2025)

The short answer

K-nearest neighbour (KNN) is a classifier that stores all training samples. To label a new point, it finds the K training points closest to it and gives the class that most of them hold.

Write these points

  1. KNN does no real training. It keeps the whole training set, so people call it a lazy learner.
  2. Distance is usually Euclidean: d(x, y) = sqrt of the sum of (xi - yi) squared. Manhattan distance also works.
  3. KNN rule: find the K nearest samples, count their classes and pick the class with the most votes.
  4. KNN estimation (density): grow a region around x until it holds k samples. Then p(x) = k / (n V), where n is the number of samples and V is the volume of that region.
  5. Choose K odd for two classes to avoid ties. A small K follows noise. A large K blurs the class boundary.
  6. Scale the features first (normalization). Otherwise a feature with big numbers decides the distance alone.
  7. Cost: no training time, but each query compares with all n points. Use a k-d tree or prototype selection to speed it up.

Steps

  1. Store the training points with their labels.
  2. For a test point, compute its distance to every training point.
  3. Sort the distances and take the K smallest.
  4. Return the majority class of those K points.

Example.

Class A: (1,2), (2,3), (3,3). Class B: (7,6), (8,7), (9,8). Test point (4,4), K = 3.

Distances: (3,3) = 1.41, (2,3) = 2.24, (1,2) = 3.61, (7,6) = 3.61, (8,7) = 5.00, (9,8) = 6.40.

The two nearest are A. The third place is a tie at 3.61 between A and B.

A wins in both cases, so (4,4) belongs to class A.

Real-life example

A new student joins a hostel and wants to know if a mess is good. She asks the five nearest friends and goes with the majority. KNN classifies a new point the same way.

The circle around (4,4) holds its nearest neighbours. Two of the three are class A.
The circle around (4,4) holds its nearest neighbours. Two of the three are class A.

Same or opposite: KNN and a trained parametric classifier

PointKNNParametric (Bayes with Gaussian)Same or opposite
TrainingOnly stores samplesLearns mean and varianceOpposite
Work at test timeHigh, finds distancesLowOpposite
Needs a distance measureYesNoOpposite
Assigns a class labelYesYesSame

Exam tip. In the numerical, write every distance in a table, because examiners give marks for the working. Mention that features must be on the same scale, which many students forget. KNN rule (classify) and KNN estimation (density) are two different things, so write both when asked.

Back to the topic list

Q2. Clustering techniques and the K-means algorithm

Asked 6 times in 2020, 2023, 2024, 2025 · Unit 3

From the papers

  • “Discuss any unsupervised learning algorithm with an example.” (2020, 2023)
  • “Explain K-means clustering algorithm with steps.” (2025)
  • “Apply one iteration of K-means for (2,2), (3,3), (8,8), (9,9) with two clusters and initial centroids (2,2) and (8,8).” (2025)

The short answer

A cluster is a group of patterns that are more similar to each other than to patterns in other groups. K-means is an unsupervised algorithm that splits n points into K clusters, each one around a mean (centroid).

Write these points

  1. Partitional methods: K-means, K-medoids, fuzzy C-means. They give one flat split into K groups.
  2. Hierarchical methods: agglomerative (merge from the bottom) and divisive (split from the top). They give a tree called a dendrogram.
  3. Density based methods such as DBSCAN find groups of any shape and mark noise points.
  4. K-means needs K in advance. It tries to make the sum of squared distances from points to their centroids as small as possible.
  5. Each pass lowers this error, so the algorithm always stops. It may stop at a local best, so the start points matter.
  6. Limits: it suits round clusters of similar size. Outliers pull the mean away.

Steps

  1. Choose K and pick K starting centroids.
  2. Assign every point to its nearest centroid.
  3. Recompute each centroid as the mean of the points assigned to it.
  4. Repeat steps 2 and 3 until no point changes its cluster.

Example.

Points (2,2), (3,3), (8,8), (9,9). K = 2, start centroids (2,2) and (8,8).

Assignment: (2,2) and (3,3) go to C1. (8,8) and (9,9) go to C2.

New centroids: C1 = (2.5, 2.5) and C2 = (8.5, 8.5). A second pass changes no point, so the algorithm stops.

Real-life example

An online shop groups customers by how much and how often they buy, without any labels. Then it sends a different offer to each group. That grouping is K-means clustering.

One pass of K-means. The red crosses are the centroids before and after the update.
One pass of K-means. The red crosses are the centroids before and after the update.

Same or opposite: K-means and hierarchical clustering

PointK-meansHierarchicalSame or opposite
Number of clustersGiven before (k)Chosen by cutting a dendrogramOpposite
OutputFlat groupsTree of groupsOpposite
Speed on large dataFastSlowOpposite
Needs no class labelsYesYesSame

Exam tip. For the numerical, show the distance table, the new groups and the new centroids for each pass. K-means is unsupervised. It never uses class labels. If the question says any unsupervised algorithm, K-means is the safest one to write.

Back to the topic list

Q3. Fuzzy classification and fuzzy decision making

Asked 6 times in 2020, 2023, 2024, 2025 · Unit 5

From the papers

  • “What do you mean by fuzzy decision making?” (2020, 2023)
  • “Explain fuzzy classification and neuro-fuzzy techniques with suitable real-life examples.” (2025)
  • “Explain the concept of fuzzy classification. How it differ from traditional classification?” (2024)

The short answer

Fuzzy classification lets a pattern belong to every class with a membership value between 0 and 1. Traditional (crisp) classification puts each pattern in exactly one class.

Write these points

  1. We use fuzzy classes when class edges are vague. Words like tall, warm or high risk have no sharp line.
  2. A membership function gives each value a grade between 0 and 1. Common shapes are triangle, trapezoid and Gaussian.
  3. Process: fuzzify the input, apply IF-THEN rules, combine the rule outputs, then defuzzify to get a final class or number.
  4. A fuzzy partition can let the memberships of one pattern add up to 1. Fuzzy C-means uses this idea for clustering.
  5. Fuzzy decision making (Bellman and Zadeh): the goal G and the constraint C are fuzzy sets. The decision D is their intersection, so D(x) = min(G(x), C(x)). Choose the x with the largest D(x).
  6. Uses: medical diagnosis, weather grading, credit risk, washing machine control.
PointCrisp classificationFuzzy classification
Membership0 or 1Any value from 0 to 1
Classes per patternExactly oneSeveral, with grades
BoundarySharpGradual
OutputOne labelGrades, then a label after defuzzifying

Example.

With the sets in the figure, a height of 175 cm is Medium with 0.40 and Tall with 0.33. A crisp rule with a cut at 172 cm would call it Tall and lose the fact that it is close to Medium.

Real-life example

A room at 27 °C is not simply hot or cold. It is 'warm' to a degree. A fuzzy AC controller uses such degrees to set the fan speed smoothly instead of switching on and off.

Three fuzzy sets for height. One value can belong to two sets at once.
Three fuzzy sets for height. One value can belong to two sets at once.

Same or opposite: fuzzy and crisp classification

PointFuzzyCrispSame or opposite
MembershipAny value from 0 to 10 or 1Opposite
One pattern in many classesYesNoOpposite
Handles vague dataWellPoorlyOpposite
Gives a final decisionYes, after defuzzificationYesSame

Exam tip. Draw the membership graph, which earns marks quickly. Write the min rule for a fuzzy decision, since students often skip the formula. Fuzzy membership is not probability: a membership of 0.4 tells how far the value belongs to the set.

Back to the topic list

Q4. Density estimation: histogram rule and Parzen window

Asked 6 times in 2020, 2023, 2024 · Unit 5

From the papers

  • “How are histograms used in pattern recognition? Explain.” (2024)
  • “Explain in detail: Density Estimation.” (2024)
  • “State and explain the rules of Histogram in detail.” (2023)

The short answer

Density estimation finds the probability density p(x) of a class from its samples. Non-parametric methods such as the histogram, the Parzen window and KNN do this without assuming a fixed shape like the normal curve.

Write these points

  1. Parametric estimation assumes a form, for example a Gaussian. It then finds only the parameters (mean and variance) from the data.
  2. Basic idea of all non-parametric methods: p(x) is about k / (n V). Here k samples out of n fall in a region of volume V around x.
  3. Histogram rule: split the axis into bins of width h. For x in a bin with k samples, p(x) = k / (n h).
  4. Histogram limits: the result jumps at bin edges, depends on where the bins start and needs too many bins in high dimensions.
  5. Parzen window: fix the window size h and count the samples near x with a window function phi.
  6. Parzen formula: p(x) = (1 / n) times the sum over all samples of (1 / h^d) phi((x - xi) / h).
  7. phi can be a unit cube (1 inside, 0 outside) or a Gaussian, which gives a smooth curve.
  8. KNN estimation does the opposite: fix k and let the volume V grow until it holds k samples.
MethodFixedChanges
HistogramBin width hCount k in each bin
Parzen windowWindow width hCount k near x
KNN estimationCount kVolume V

Three estimates from six samples.

Samples 1, 2, 2.5, 3, 7, 8, so n = 6. The general formula is p(x) = k / (n V).

Histogram with bins of width 2: the bin [2, 4) holds 2, 2.5 and 3, so p = 3 / (6 × 2) = 0.25.

Parzen box window of width h = 2 at x = 2.5: the samples within 1 of x are 2, 2.5 and 3. So p = 3 / (6 × 2) = 0.25. At x = 5 no sample falls in, so p = 0.

KNN with k = 2 at x = 5: the two nearest samples (3 and 7) are 2 away, so V = 4.

So p = 2 / (6 × 4) = 0.083. KNN never gives 0.

Real-life example

A city traffic team counts cars in each hour of the day to see when roads are busiest. That bar chart is a histogram estimate of the traffic density over time.

The same 60 samples. The histogram jumps at bin edges. The Parzen estimate is smooth.
The same 60 samples. The histogram jumps at bin edges. The Parzen estimate is smooth.

Same or opposite: histogram and Parzen window

PointHistogramParzen windowSame or opposite
Shape of estimateStepsSmoothOpposite
Depends onBin width and startWindow width hOpposite
Non-parametricYesYesSame
Works well in many dimensionsNoBetter, still needs much dataOpposite

Exam tip. Write the general formula p(x) = k / (n V) first, because every method follows from it. The choice of h decides everything: a small h gives a spiky curve while a large h hides the two peaks. Histograms also serve as features, for example a colour histogram of an image.

Back to the topic list

Q5. Supervised and unsupervised learning: difference

Asked 5 times in 2020, 2023, 2024, 2025 · Unit 1

From the papers

  • “Explain supervised learning and unsupervised learning.” (2020, 2023, 2025)
  • “Explain the difference between supervised and unsupervised learning with an example.” (2023, 2024)

The short answer

In supervised learning every training sample comes with its correct class label. In unsupervised learning the samples have no labels, so the algorithm must find structure such as groups by itself.

Write these points

  1. Supervised learning learns a mapping from input x to label y. Its main tasks are classification and regression.
  2. Unsupervised learning finds natural groups or patterns. Its main tasks are clustering and dimension reduction.
  3. Supervised examples: spam filtering, digit recognition, disease diagnosis from labelled records.
  4. Unsupervised examples: customer segmentation, grouping news stories, finding unusual bank transactions.
  5. Semi-supervised learning uses a few labelled samples with many unlabelled ones.
  6. Adaptation means the system keeps updating itself as new data arrives, for example a spam filter learning new tricks.
PointSupervisedUnsupervised
LabelsGiven for every sampleNot given
GoalPredict the labelFind groups or structure
AlgorithmsKNN, Naive Bayes, SVM, decision treeK-means, hierarchical, PCA
Accuracy checkCompare with true labelsCluster validation indices
CostLabelling takes effortResults are harder to judge

The same fruits, with and without labels.

Weights in grams: 140, 150, 160 labelled apple and 200, 210, 220 labelled orange.

Supervised: the class means are 150 and 210. A new fruit of 170 g is 20 from apple and 40 from orange, so it is called apple.

Unsupervised: K-means with K = 2 on the same six weights finds {140, 150, 160} and {200, 210, 220}.

The groups are the same, but the algorithm cannot name them. A person must look at them and say which is apple.

Real-life example

A spam filter learns from mails already marked spam or not spam. That is supervised. A music app grouping songs by sound with no labels is unsupervised.

Left: labels are known and the model learns a boundary. Right: no labels, the algorithm finds groups.
Left: labels are known and the model learns a boundary. Right: no labels, the algorithm finds groups.

Same or opposite: supervised and unsupervised learning

PointSupervisedUnsupervisedSame or opposite
Labels in training dataYesNoOpposite
Main taskClassification, regressionClusteringOpposite
Example methodKNN, decision treeK-meansOpposite
Learns from dataYesYesSame

Exam tip. A table with five rows plus one example on each side is enough for 7 marks. Draw two small pictures: labelled points with a line beside unlabelled points in circles.

Back to the topic list

Q6. Feature extraction and dimension reduction (PCA)

Asked 5 times in 2020, 2023, 2024 · Unit 4

From the papers

  • “What is feature extraction? Explain the feature extraction techniques in detail.” (2024)
  • “Discuss the various types of feature extraction.” (2023)
  • “Write short on Principal Component Analysis.” (2023)

The short answer

Feature extraction makes a few new features from the original ones, for example by combining them. Dimension reduction lowers the number of features while keeping most of the useful information.

Write these points

  1. Why reduce: fewer features mean faster training, less overfitting and easier plotting. Many features also suffer from the curse of dimensionality.
  2. Feature extraction builds new features. Feature selection keeps a subset of the old ones.
  3. Types of extraction: linear (PCA, LDA) and non-linear (kernel PCA, autoencoders). For images: edges, texture, colour histograms.
  4. PCA is unsupervised. It finds new axes (principal components) along which the data varies most.
  5. The components are the eigenvectors of the covariance matrix. The eigenvalue of each one tells how much variance it keeps.
  6. LDA is supervised. It finds axes that best separate the classes.

Steps

  1. Subtract the mean from every feature so the data is centred.
  2. Compute the covariance matrix of the features.
  3. Find its eigenvalues and eigenvectors.
  4. Sort them by eigenvalue and keep the top k eigenvectors.
  5. Project the data on these k vectors to get the new k features.

Example.

If two features have eigenvalues 4.5 and 0.5, the first component keeps 4.5 / 5.0 = 90 percent of the variance. We can keep only that one and lose little.

Real-life example

A face photo has thousands of pixels, but the face lock on a phone needs far fewer numbers to tell faces apart. PCA keeps the few directions that carry most of the variation.

PC1 points along the longest spread of the data. PC2 is at right angles to it.
PC1 points along the longest spread of the data. PC2 is at right angles to it.

Same or opposite: feature extraction and feature selection

PointExtraction (PCA)SelectionSame or opposite
New featuresMade by combining old onesA subset of old onesOpposite
Meaning of featuresOften lostKeptOpposite
Reduces dimensionsYesYesSame
ExamplePrincipal componentsBranch and boundOpposite

Exam tip. Write the five steps in order. They are the core of the answer. Say that PCA ignores class labels. LDA uses them. Draw the scatter with the two arrows PC1 and PC2.

Back to the topic list

Q7. Pattern recognition: meaning, need and design principles

Asked 4 times in 2020, 2023, 2024, 2025 · Unit 1

From the papers

  • “What are the design principles of Pattern Recognition? Explain.” (2023, 2024)
  • “Define Pattern Recognition. Explain its need and importance in intelligent systems.” (2025)
  • “What is pattern recognition? Explain it.” (2020)

The short answer

Pattern recognition is the study of how a machine can observe data, learn the patterns in it and assign each new pattern to a category. A pattern can be an image, a sound, a signal or a set of measurements.

Write these points

  1. Need: people cannot sort huge amounts of data by hand. Machines can read cheques, check faces and spot faults quickly.
  2. Applications: character recognition, speech recognition, face and fingerprint checks, medical images, spam filters.
  3. Design principle 1: pick features that differ a lot between classes and little within a class.
  4. Design principle 2: features should not change with shift, rotation or scale when the class does not change (invariance).
  5. Design principle 3: the model must generalise to new data. A model that only fits the training set is overfitted.
  6. Design principle 4: use enough good training data. Keep a separate test set to measure accuracy.
  7. Design principle 5: think of the cost of errors. Missing a disease costs more than a false alarm.

Steps

  1. Collect data.
  2. Choose features.
  3. Choose a model (classifier).
  4. Train the classifier.
  5. Evaluate it on test data. Go back to an earlier step if it is not good enough.

The design cycle on a fish sorter.

Task: sort salmon from sea bass on a conveyor belt by camera.

Collect 100 labelled images. Choose two features: length and lightness of the skin.

Train a linear classifier on 70 fish, test on the other 30. It gets 3 wrong, an error of 10%.

The error is too high, so go back round the loop. Add the width feature, then retrain until the test error falls.

Real-life example

Your phone reads a handwritten note into text, opens with your face and recognises your voice. Each of these is pattern recognition at work.

The stages of a pattern recognition system, from the sensor to the final decision.
The stages of a pattern recognition system, from the sensor to the final decision.

Same or opposite: statistical and structural pattern recognition

PointStatisticalStructuralSame or opposite
Pattern isA feature vectorParts and their relationsOpposite
MethodProbability, decision rulesGrammars, graphsOpposite
ExampleSpam filterRecognising a chemical structureOpposite
Assigns a classYesYesSame

Exam tip. Draw the system block diagram, which answers half of the question. Write the five design steps above as a loop. Give two real examples, because examiners like applications from daily life.

Back to the topic list

Q8. Decision boundary, decision regions and metric spaces

Asked 4 times in 2020, 2023, 2024, 2025 · Unit 1

From the papers

  • “What is a decision boundary? Explain decision regions and metric spaces.” (2025)
  • “Explain in detail: Decision Region.” (2024)
  • “Define the following: i) Clustering ii) Metric spaces.” (2023)

The short answer

A classifier splits the feature space into decision regions, one for each class. The surface between two regions is the decision boundary.

Write these points

  1. A discriminant function gi(x) gives a score for class i. The classifier picks the class with the largest gi(x).
  2. For two classes, use g(x) = g1(x) - g2(x). Choose class 1 when g(x) > 0 and class 2 when g(x) < 0. The boundary is g(x) = 0.
  3. Linear discriminant: g(x) = w^T x + w0. Its boundary is a straight line in 2D, a plane in 3D and a hyperplane in general.
  4. Bayes classifier: gi(x) = P(wi | x). Its boundary can be curved when classes have different covariances.
  5. A metric space is a set with a distance d that obeys four rules. They are d(x,y) >= 0, d(x,y) = 0 only when x = y, d(x,y) = d(y,x) and d(x,z) <= d(x,y) + d(y,z).
  6. Common metrics: Euclidean, Manhattan (sum of absolute differences) and Minkowski, which covers both.
  7. Clustering: grouping patterns so that points in one group are close under this distance.

Example.

With g(x) = 0.8 x1 - x2 - 1.5, the point (8, 2) gives g = 2.9 > 0, so it lies in region R2 (class 2). The point (2, 4) gives g = -3.9 < 0, so it lies in R1 (class 1).

Real-life example

A bank decides loan approval from income and credit score. On a graph, a line splits approved points from rejected ones. That line is the decision boundary.

The line g(x) = 0 splits the plane into region R1 and region R2.
The line g(x) = 0 splits the plane into region R1 and region R2.

Same or opposite: linear and non-linear decision boundary

PointLinearNon-linearSame or opposite
ShapeStraight line or planeCurveOpposite
Example classifierPerceptronKNN, kernel SVMOpposite
Separates decision regionsYesYesSame
Handles XOR-like dataNoYesOpposite

Exam tip. Write the four metric rules. They are easy marks. Draw two regions with the line g(x) = 0 between them.

Back to the topic list

Q9. Classification and clustering: difference with examples

Asked 3 times in 2020, 2023, 2025 · Unit 1

From the papers

  • “Write the difference between classification and clustering.” (2020, 2023)
  • “Explain classification and clustering with suitable examples.” (2025)

The short answer

Classification puts a new pattern into one of the known classes, using a model trained on labelled data. Clustering groups unlabelled patterns so that similar ones end up together.

Write these points

  1. Classification is supervised. The classes are fixed before training.
  2. Clustering is unsupervised. The groups come from the data. Their number may not be known.
  3. Classification example: an email arrives and the filter labels it spam or not spam.
  4. Clustering example: a shop groups customers by buying habits without any labels given in advance.
  5. Clustering is often done first. Experts then name the groups, which then serve as labels for a classifier.
PointClassificationClustering
Type of learningSupervisedUnsupervised
LabelsNeeded for trainingNot needed
Number of groupsKnown in advanceOften unknown
OutputClass of a new sampleGroups of the given samples
AlgorithmsKNN, decision tree, SVMK-means, hierarchical, DBSCAN
Checked byAccuracy on a test setCluster validation

One example of each.

Classification: 1,000 mails labelled spam or not spam train a model. A new mail "Win ₹1 lakh now, click here" is put in spam.

Clustering: 1,000 news articles with no labels are split into 3 groups by their words.

Reading the groups later shows they are sports, politics and films. Nobody gave those names to the algorithm.

So classification needs labels before training, while clustering finds the groups first.

Real-life example

A doctor sorting X-rays into known diseases is doing classification. A researcher grouping patients by symptoms to find new patterns is doing clustering.

Figure: classification and clustering
Figure: classification and clustering

Same or opposite: classification and clustering

PointClassificationClusteringSame or opposite
Classes known beforeYesNoOpposite
Learning typeSupervisedUnsupervisedOpposite
ExampleSpam or not spamCustomer groupsOpposite
Groups similar patternsYesYesSame

Exam tip. A six-row table with one example each is a full answer. Do not write that clustering predicts a label for new data. It only groups the data it is given.

Back to the topic list

Q10. Random forest and ensemble learning

Asked 3 times in 2023, 2024, 2025 · Unit 2

From the papers

  • “Discuss Random Forest classifier and the concept of ensemble learning.” (2025)
  • “Explain in detail: Random Forest.” (2024)
  • “Write a detail note on Random Forest.” (2023)

The short answer

Ensemble learning joins several classifiers to get a better result than any one of them. A random forest is an ensemble of decision trees, each trained on a random sample, which then take a vote.

Write these points

  1. Bagging: each tree gets a bootstrap sample, which is n rows drawn from the training set with replacement.
  2. Random features: at each split a tree looks at only a random subset of features, often sqrt(d) out of d.
  3. These two kinds of randomness make the trees different. Their errors partly cancel when we vote.
  4. Classification uses a majority vote. Regression uses the average of the tree outputs.
  5. Out-of-bag (OOB) error: each tree never sees about one third of the rows. Testing on them gives an error estimate without a separate test set.
  6. Merits: high accuracy, less overfitting than one deep tree, handles many features and gives feature importance.
  7. Limits: slower and harder to explain than one tree.

Steps

  1. For t = 1 to T, draw a bootstrap sample from the training data.
  2. Grow a decision tree on it, choosing each split from a random subset of features.
  3. To classify x, run it through all T trees.
  4. Return the class with the most votes.

Why a vote of trees beats one tree.

Five trees vote on one patient: yes, yes, no, yes, no. Three of five say yes, so the forest says yes.

Say each tree alone is right 70% of the time, with independent errors.

The forest is right when at least 3 of 5 trees are right: 0.309 + 0.360 + 0.168 = 0.837, about 84%.

Each tree is trained on a bootstrap sample (n draws with replacement), which holds about 63% of the distinct rows.

Real-life example

Before a big decision you may ask many friends, not one. Each gives a slightly different view and you follow the majority. A random forest asks many decision trees and takes their vote.

Each tree learns from its own sample. The forest output is the majority vote.
Each tree learns from its own sample. The forest output is the majority vote.

Same or opposite: decision tree and random forest

PointDecision treeRandom forestSame or opposite
Number of treesOneManyOpposite
OverfittingHighLowOpposite
Easy to explainYesHarderOpposite
Used for classificationYesYesSame

Exam tip. Mention both sources of randomness: rows (bootstrap) and features (random subset). Other ensemble methods are boosting (AdaBoost) and stacking. Name them for the ensemble part.

Back to the topic list

Q11. Bayes theorem and the Naive Bayes classifier

Asked 3 times in 2023, 2024, 2025 · Unit 2

From the papers

  • “Describe Naive Bayes classifier along with its assumptions and limitations.” (2025)
  • “Discuss Naive Bayes theorem in detail.” (2024)
  • “Explain Bayes theorem.” (2023)

The short answer

Bayes theorem gives the posterior probability of a class after seeing the data: P(w | x) = P(x | w) P(w) / P(x). The Naive Bayes classifier uses it and assumes that the features are independent given the class.

Write these points

  1. P(w) is the prior, P(x | w) is the likelihood and P(x) is the evidence, the same for all classes.
  2. Bayes decision rule: choose the class with the largest posterior. This gives the lowest probability of error.
  3. Naive assumption: P(x1, x2, ..., xd | w) = P(x1 | w) times P(x2 | w) and so on up to P(xd | w).
  4. So the classifier picks the class w that makes P(w) times the product of P(xi | w) largest.
  5. Types: Gaussian (continuous features), multinomial (word counts), Bernoulli (yes or no features).
  6. Merits: fast, needs little data and works well for text and spam filtering.
  7. Limits: real features are often related. A zero count makes the product zero, so we add Laplace smoothing (add 1 to each count).

Example.

P(spam) = 0.4. The word offer appears in 50 percent of spam and 10 percent of normal mail. P(spam | offer) = (0.5 x 0.4) / (0.5 x 0.4 + 0.1 x 0.6) = 0.20 / 0.26 = 0.77. The mail is labelled spam.

Real-life example

Gmail's early spam filters used Naive Bayes. Words like 'lottery' and 'winner' raise the chance of spam. The filter multiplies these chances to decide.

Figure: Naive Bayes classification
Figure: Naive Bayes classification

Same or opposite: prior and posterior probability

PointPrior P(w)Posterior P(w | x)Same or opposite
KnownBefore seeing the dataAfter seeing the dataOpposite
Example20 % of mails are spamThis mail is 95 % spamOpposite
Used in Bayes theoremYesYesSame
Changes with the featuresNoYesOpposite

Exam tip. Write the formula and name each term. That alone is worth marks. State the independence assumption clearly. It is why the method is called naive. Show one small numerical like the spam example.

Back to the topic list

Q12. Cluster validation and why it matters

Asked 3 times in 2020, 2023, 2024 · Unit 3

From the papers

  • “Why cluster validation is important? Explain.” (2024)
  • “Describe about cluster validation.” (2023)
  • “Short note: Cluster validation.” (2020)

The short answer

Cluster validation measures how good a clustering result is: whether the groups are compact, well apart and real. It also helps choose the number of clusters.

Write these points

  1. Why needed: every clustering algorithm returns groups, even on random data. Validation tells us if the groups mean anything.
  2. It also helps choose K for K-means and compare two algorithms on the same data.
  3. Internal indices use only the data. SSE (within-cluster sum of squares) should be small.
  4. Silhouette for a point: s = (b - a) / max(a, b). Here a is the mean distance to its own cluster. b is the mean distance to the nearest other cluster. s near 1 is good. s below 0 means the point is in the wrong cluster.
  5. Davies-Bouldin index compares spread within clusters to the distance between them. Lower is better.
  6. External indices compare with known labels: purity, Rand index, F-measure.
  7. Relative criteria run the same algorithm with different K and compare. The elbow method plots SSE against K.

Example.

For a point with a = 1.0 and b = 4.0, s = (4 - 1) / 4 = 0.75. The point fits its cluster well.

Real-life example

K-means always gives k groups, even when the data has no real groups. A shop must check its customer clusters before spending money on offers. Cluster validation is that check.

Figure: kinds of cluster validation
Figure: kinds of cluster validation

Same or opposite: internal and external validation

PointInternalExternalSame or opposite
Uses true labelsNoYesOpposite
Example indexSilhouette, Dunn indexRand index, purityOpposite
Measures cluster qualityYesYesSame
Available in real projectsAlmost alwaysOnly with labelsOpposite

Exam tip. Name the three kinds of validation: internal, external and relative. Write the silhouette formula with the meaning of a and b.

Back to the topic list

Q13. Paradigms of pattern recognition

Asked 3 times in 2020, 2023, 2025 · Unit 3

From the papers

  • “Explain different paradigms of Pattern Recognition.” (2023, 2025)
  • “What is pattern classification? What are major paradigms of machine learning?” (2020)

The short answer

A paradigm is a basic approach to pattern recognition: the two main ones are statistical and structural (syntactic). Template matching, neural networks and fuzzy methods are also used.

Write these points

  1. Statistical: each pattern is a feature vector. Classes are described by probability densities. Bayes decision theory gives the class.
  2. Structural or syntactic: a pattern is built from simple parts called primitives. A grammar or a graph describes how the parts join.
  3. Example of structural: a character is a set of strokes. A chromosome shape is a string of curve types.
  4. Template matching: compare the pattern with a stored template and pick the best match, for example by correlation.
  5. Neural networks: layers of neurons learn the mapping from features to classes from examples.
  6. Fuzzy and soft computing: use membership grades and rules for vague classes.
  7. Representation of patterns: vectors, strings, trees or graphs. A class can be shown by its mean, a set of prototypes or a density.
ParadigmPattern shown asDecision by
StatisticalFeature vectorProbability, Bayes rule
StructuralPrimitives and relationsGrammar parsing, graph matching
TemplateStored image or signalBest correlation
NeuralInput vectorTrained network output

Recognising the digit 7 three ways.

Statistical: measure features such as the ink in the top half and the number of strokes. A Bayes classifier picks the most probable digit.

Structural: describe 7 as primitives, a horizontal stroke H followed by a down-left diagonal D. The grammar rule 7 → H D accepts it.

Template matching: lay the image over a stored 28 × 28 template of 7. If 90% of the pixels match, the answer is 7.

The first works with numbers, the second with shapes and rules, the third with a direct comparison.

Real-life example

Reading a number plate can be done by measuring features of each character (statistical). It can also be done by describing the strokes that build each letter (structural).

Figure: paradigms of pattern recognition
Figure: paradigms of pattern recognition

Same or opposite: statistical and syntactic paradigm

PointStatisticalSyntactic (structural)Same or opposite
Pattern described byFeature vectorPrimitives and grammarOpposite
Decision byProbabilityParsingOpposite
Good forNoisy measurementsPatterns with clear structureOpposite
A paradigm of pattern recognitionYesYesSame

Exam tip. Statistical and structural are the two expected paradigms. Explain both with an example. A comparison table at the end makes the answer look complete.

Back to the topic list

Q14. Neuro-fuzzy and neural network based pattern recognition

Asked 3 times in 2023, 2024, 2025 · Unit 5

From the papers

  • “Discuss recent advances in Pattern Recognition with reference to structural pattern recognition and soft computing techniques.” (2025)
  • “Explain the concept of Neural Network-Based Pattern Recognition in detail.” (2024)
  • “Describe about the of Neuro-Fuzzy and its Techniques.” (2023)

The short answer

Soft computing joins neural networks, fuzzy logic and genetic algorithms to handle noisy and vague data. A neuro-fuzzy system is a fuzzy rule system whose memberships and rule outputs are learned by a neural network.

Write these points

  1. Neural network based PR: a multilayer perceptron takes the feature vector as input. Each output neuron stands for a class. Back-propagation learns the weights from labelled examples.
  2. Convolutional networks learn their own features from raw images, so hand-made features are less needed.
  3. Fuzzy rules are easy to read but are set by hand. Neural networks learn from data but act like a black box. Neuro-fuzzy systems keep the readable rules and add learning.
  4. ANFIS (adaptive neuro-fuzzy inference system) has five layers: fuzzify, rule strength, normalise, rule output and sum.
  5. Real-life uses: handwriting and face recognition, washing machines that set wash time, medical diagnosis, stock trend prediction.
  6. Structural PR is another recent area. It describes a pattern as parts and relations, using graphs or grammars.

A neural network tuning a fuzzy rule.

Rule: IF temperature is High THEN fan speed is Fast, with a maximum of 1,500 rpm.

High(x) = (x − 25) / 10 between 25 °C and 35 °C. At 31 °C the membership is 0.6, so the fan runs at 0.6 × 1,500 = 900 rpm.

The training data says the fan should run at 1,000 rpm at 31 °C.

The network moves the start of High from 25 to 23. Now High(31) = 8 / 12 = 0.67 and the speed becomes 1,000 rpm.

Real-life example

A washing machine that reads load and dirt levels and sets its own wash time often uses a neuro-fuzzy controller. Fuzzy rules give the logic. The neural part tunes them from data.

ANFIS: fuzzy rules arranged as network layers so that training can tune them.
ANFIS: fuzzy rules arranged as network layers so that training can tune them.

Same or opposite: neural network and fuzzy system

PointNeural networkFuzzy systemSame or opposite
Learns from dataYesNot by itselfOpposite
Easy to read its logicNoYes, IF-THEN rulesOpposite
Handles noisy dataYesYesSame
Combined inNeuro-fuzzy (ANFIS)Neuro-fuzzy (ANFIS)Same

Exam tip. Draw the five ANFIS layers in a row. That is the expected figure. Give one real example for each technique.

Back to the topic list

Q15. Feature selection: branch and bound and sequential forward selection

Asked 3 times in 2023, 2024 · Unit 4

From the papers

  • “How can you prevent over fitting when using SFS? Explain.” (2024)
  • “Illustrate branch and bound Algorithm with suitable example.” (2023)
  • “Write an algorithm for forward selection with suitable example.” (2023)

The short answer

Feature selection picks the best d features out of D, judged by a criterion J such as class separability or validation accuracy. Trying every subset costs C(D, d) evaluations, which grows very fast.

Write these points

  1. Branch and bound finds the best subset without testing all of them. It needs J to be monotonic: removing a feature never raises J.
  2. It builds a tree where each level removes one more feature. A leaf is a subset of size d.
  3. The best J found at a leaf so far is the bound. If a node already has J below the bound, its whole branch is cut, because removing more features can only lower J.
  4. SFS starts with an empty set. At each step it adds the one feature that raises J the most, until d features are chosen.
  5. SFS is fast but greedy. A feature once added is never removed (the nesting effect). Sequential backward selection starts full and removes features.
  6. The (l, r) method adds l features and then removes r features at each stage, which reduces nesting.
  7. Preventing overfitting in SFS: compute J by cross-validation, stop when the validation score stops rising and test on a separate set.

Steps

  1. SFS: set S = empty.
  2. For each feature f not in S, compute J(S plus f).
  3. Add the feature with the highest J to S.
  4. Stop when S has d features or J stops rising. Otherwise go to step 2.

Example.

Choose 2 of 5 features. Exhaustive search tests C(5, 2) = 10 subsets. Branch and bound gives the same best pair but usually evaluates fewer nodes because cut branches are never explored.

Real-life example

A medical test lab may measure 30 values from a blood sample, but only 5 really predict a disease. Feature selection finds those 5, so the test is cheaper and the model is simpler.

SFS adds one feature per step. The J values are only an example.
SFS adds one feature per step. The J values are only an example.

Same or opposite: branch and bound and sequential forward selection

PointBranch and boundSFSSame or opposite
Finds best subsetYes, if J is monotonicNot alwaysOpposite
SpeedSlowerFasterOpposite
DirectionRemoves from the full setAdds one at a timeOpposite
Uses a criterion JYesYesSame

Exam tip. Say that branch and bound gives the best subset only when J is monotonic. Mention the nesting effect of SFS and the (l, r) fix.

Back to the topic list

How we picked these questions

RGPV teaches Pattern Recognition to 2 branches under one syllabus. Each branch prints its own code on the paper, but the units are the same. So one page and one PDF serve all of them.

We counted every question in the Pattern Recognition papers on this site by topic, from 2020 to 2025. A topic that keeps coming back is a topic RGPV likes, so it sits higher in the table. One branch alone has only a few papers. Counting them together gives a surer list.

Pattern Recognition important questions by branch

CS-503-B Pattern Recognition important questions for CSE, Semester 5

CS-503-B follows the same RGPV syllabus as the other codes on this page. The 15 topics and answers above are the CS-503-B important questions too.

See all 3 CS-503-B previous year papers

CD-503-B Pattern Recognition important questions for CSE-DS, Semester 5

CD-503-B follows the same RGPV syllabus as the other codes on this page. The 15 topics and answers above are the CD-503-B important questions too.

See all 3 CD-503-B previous year papers

About Pattern Recognition

Pattern Recognition (CS-503 B) is an elective in Semester 5 of RGPV B.Tech CSE. It teaches how computers sort things into classes, such as spotting a digit or a face. The five units go from basic ideas to classifiers, clustering and feature selection. Work a small numerical example for every algorithm.

Pattern Recognition unit-wise brief

Unit 1: Introduction and definitions

This unit defines pattern recognition and shows its application areas and design principles. It covers classification and clustering, supervised and unsupervised learning, decision boundaries and regions, and metric spaces and distances. Be able to tell supervised from unsupervised learning with an example.

Unit 2: Classification

Here you study the types of classification and methods such as decision trees, naive Bayes, logistic regression, support vector machines, random forests and the K nearest neighbour classifier. It also covers prototype selection, combining classifiers, training and test sets, and standardisation. Do one nearest neighbour example by hand.

Unit 3: Paradigms of pattern recognition and clustering

This unit covers how patterns and classes are represented, then unsupervised learning and clustering: criterion functions, K-means (iterative square error clustering), hierarchical clustering and cluster validation. Run K-means for two rounds on a few points.

Unit 4: Feature extraction and feature selection

Features are the measurements a classifier uses. The unit covers the types of feature extraction, why feature selection is needed, and the algorithms: branch and bound, sequential forward and backward selection and the (l, r) algorithm. Compare forward and backward selection on a small case.

Unit 5: Recent advances in pattern recognition

The last unit covers structural pattern recognition, support vector machines, fuzzy c-means (FCM), soft computing and neuro-fuzzy techniques, histogram rules, density estimation, the nearest neighbour rule and fuzzy classification, with real life examples. Learn one example for each technique.

Units follow the RGPV scheme and syllabus, B.Tech Computer Science and Engineering, Semester 5 (AICTE flexible curriculum, w.e.f. July 2019). For the full topic list of each unit, open the Pattern Recognition notes.

Start with the latest papers

Pattern Recognition - Nov 2023

Pattern Recognition - Jun 2020

Pattern Recognition - Dec 2020

See all 3 papers →

Pattern Recognition (CS-503-B) FAQs

What are the most important topics in Pattern Recognition?

By how often they were asked in the papers on this site: K-nearest neighbour: KNN rule, estimation and a worked example (7 times); Clustering techniques and the K-means algorithm (6 times); Fuzzy classification and fuzzy decision making (6 times); Density estimation: histogram rule and Parzen window (6 times); Supervised and unsupervised learning: difference (5 times).

How were these Pattern Recognition important questions chosen?

Each topic was counted from the questions in the past papers listed on this site (2020-2025). Repeated is the number of times the topic came. The counts come from keyword matching and the answers are not teacher-reviewed, so use them together with your syllabus.

Is there a PDF of Pattern Recognition important questions with answers?

Yes. The Paperwala Imp Question & Answer PDF for Pattern Recognition is free to download from this page.

The 15 most repeated topics of Pattern Recognition (CS-503-B) for RGPV B.Tech CSE semester 5, counted from the previous year papers on this site. The same syllabus is taught under 2 codes: CS-503-B, CD-503-B.