Counted from the questions in the past papers listed on this site. Repeated = how many times the topic came in those papers.
Data Mining and Warehousing 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. Data preprocessing: cleaning, integration and missing values
Asked 12 times in 2020, 2023, 2024, 2025 · Unit 1
From the papers
“What is data cleaning? What are the different techniques for handling missing values?” (2025)
“What are the steps involved in data preprocessing? Explain.” (2025)
“Why is Data Preprocessing needed? Explain Data Preprocessing tasks.” (2025)
The short answer
Data preprocessing turns raw data, which is incomplete, noisy and inconsistent, into clean data a mining algorithm can use. Its main tasks are cleaning, integration, transformation and reduction.
Write these points
Why it is needed
Missing values, such as a blank age in a form.
Noise and errors, such as age = 250.
Inconsistency, such as 'M', 'Male' and '1' used for the same thing in different sources.
Tasks
Data cleaning: fill missing values, smooth noise, find and remove outliers, fix inconsistencies.
Data integration: join data from many sources into one store. Issues: schema matching (cust_id vs customer_no), duplicate records, value conflicts such as rupees vs dollars.
Data transformation: normalisation (min-max, z-score), aggregation, generalisation (city to state), building new attributes.
Data reduction: smaller data with the same results. Dimension reduction (PCA, attribute selection), sampling, aggregation into cubes.
Discretisation: turn numbers into ranges, such as age into young, middle and old.
Handling missing values
Ignore the record (only when few are missing).
Fill by hand.
Fill with a constant such as 'Unknown'.
Fill with the mean or median of the attribute, or of the same class.
Fill with the most probable value from regression or a decision tree.
Noise smoothing by binning.
Sorted prices 4, 8, 15, 21, 21, 24, 25, 28, 34. Three bins of three.
Smoothing by bin means gives 9, 9, 9 / 22, 22, 22 / 29, 29, 29.
Real-life example
A hospital merges patient data from three branches. One stores dates as DD-MM, another as MM-DD and some ages are blank. Without cleaning and integration, any report on patient age by month would be wrong.
Figure 1.1: Steps of data preprocessing
Same or opposite: data cleaning and data reduction
Point
Cleaning
Reduction
Same or opposite
Goal
Correct the data
Make the data smaller
Opposite
Examples
Fill missing values, remove noise
PCA, sampling
Opposite
Changes the number of rows or columns
Sometimes
Yes
Opposite
Part of preprocessing
Yes
Yes
Same
Exam tip. List the four tasks with one example each. For missing values, give at least four methods. A small binning example shows you understand noise smoothing.
Q2. Data mining tasks, functionalities, primitives and issues
Asked 10 times in 2020, 2023, 2024, 2025 · Unit 3
From the papers
“Explain major requirements and challenges in data mining.” (2020, 2025)
“Explain the data mining functionalities.” (2024, 2025)
“Discuss about data mining task primitives with examples.” (2025)
The short answer
Data mining functionalities are the kinds of patterns mining can find: descriptive tasks describe the data while predictive tasks predict unknown values. Task primitives are what a user specifies to define a mining task.
Write these points
Functionalities
Characterisation and discrimination: summarise a class, or compare two classes.
Association analysis: items that occur together, such as bread and butter.
Classification and regression: predict a class label or a number.
Clustering: group similar objects without labels.
Outlier analysis: find unusual objects, such as fraud.
Evolution analysis: trends and patterns over time.
Task primitives
Task-relevant data, kind of knowledge to mine, background knowledge (concept hierarchies), interestingness measures (support, confidence) and how to present the results.
Issues and challenges
Methodology: mining different kinds of knowledge, handling noise, judging which patterns are interesting.
User interaction: query languages, showing results clearly, using background knowledge.
Performance: efficiency and scalability on huge data, parallel and incremental mining.
Data types: relational, text, web, spatial, multimedia data.
Society: privacy of personal data and security of results.
One task of each kind on college data.
Characterisation: summarise the students who scored above 80% (most study 3+ hours a day).
Association: students who join coding clubs often also take the ML elective.
Classification: predict pass or fail in Sem 5 from Sem 3 and Sem 4 marks.
Clustering: group students by attendance and marks into 3 groups with no labels given. Outlier analysis: flag a student with 0% attendance but 95% marks for a check.
Real-life example
A supermarket mines bills to find items bought together (association), groups shoppers by habit (clustering) and flags strange card payments (outlier analysis). Each is a different data mining task on the same data.
Figure 2.1: Data mining functionalities
Same or opposite: descriptive and predictive mining
Point
Descriptive
Predictive
Same or opposite
Aim
Describe the data
Predict unknown values
Opposite
Examples
Clustering, association
Classification, regression
Opposite
Needs labelled data
No
Usually yes
Opposite
Finds patterns in data
Yes
Yes
Same
Exam tip. Split the functionalities into descriptive and predictive with one real example each. Name the five primitives. For issues, group them under headings instead of a long list.
Q3. OLAP operations: roll up, drill down, slice, dice, pivot
Asked 9 times in 2020, 2023, 2024, 2025 · Unit 2
From the papers
“Explain OLAP operations with example.” (2020, 2024, 2025)
“With necessary diagrams and example, explain various OLAP operations on data cubes.” (2024)
“Explain the following in OLAP: Roll up, Drill down, Slice and Dice operations.” (2024)
The short answer
OLAP operations let a user move around a multidimensional data cube to see the data at different levels and from different angles. The main ones are roll-up, drill-down, slice, dice and pivot.
Write these points
Roll-up (drill-up): go to a higher level of a concept hierarchy, or remove a dimension. Example: sales by city become sales by state.
Drill-down: the reverse. Go to more detail. Example: sales by quarter become sales by month.
Slice: fix one dimension to one value to get a sub-cube. Example: time = Q1.
Dice: pick values on two or more dimensions. Example: time in Q1 or Q2, location in Bhopal or Indore, item = mobile.
Pivot (rotate): turn the cube to view it from another side, such as swapping rows and columns.
Other operations: drill-across (across two fact tables) and drill-through (down to the base table rows).
OLAP queries run these operations on the cube and return totals, averages or counts at the chosen level.
Roll up from city to state: Madhya Pradesh Q1 = 400 + 500 = 900, Q2 = 300 + 200 = 500.
Slice on quarter = Q1: Bhopal 400, Indore 500. The Q2 values drop out of the view.
Drill down does the reverse of roll up: from Q1 = 900 back to the city or month figures.
Real-life example
A shop chain manager sees total sales for Madhya Pradesh, then drills down to Bhopal, then to March. The manager then slices only mobile phones. All of this happens on one data cube in a few clicks.
Figure: the five OLAP operations on a sales cubeFigure 3.1: OLAP operations on a cube
Same or opposite: roll-up and drill-down
Point
Roll-up
Drill-down
Same or opposite
Detail
Less
More
Opposite
Direction in hierarchy
Up
Down
Opposite
Example
Month → quarter
Year → quarter
Opposite
Works on a data cube
Yes
Yes
Same
Exam tip. Draw a 3-D cube with time, location and item. Show each operation with a small before and after. A table of all five operations is quick and earns full marks.
“Explain whether association rule mining is supervised or unsupervised type of learning.” (2023, 2025)
“For a transactional database we can get a large number of association rules. How can we get useful association rules from such a large set?” (2025)
“What are association rules? Differentiate Apriori and FP-Growth algorithms.” (2025)
The short answer
Association rule mining finds rules X → Y showing that items in X are often bought with items in Y. Apriori finds the frequent item sets level by level, then rules are made from them.
Write these points
Measures
Support (X → Y) = transactions holding X and Y / all transactions.
Confidence (X → Y) = support(X ∪ Y) / support(X).
A rule is strong if it meets both minimum support and minimum confidence.
Apriori steps
Count each item. Keep those with support ≥ min support: L₁.
Join Lₖ₋₁ with itself to make candidates Cₖ.
Prune: drop any candidate with an infrequent subset. Every subset of a frequent set must be frequent (the Apriori property).
Scan the data to count Cₖ. Keep the frequent ones as Lₖ. Repeat until no new set is found.
Rule generation: for each frequent set L and each subset S, make S → (L − S) if its confidence ≥ min confidence.
Association mining is unsupervised: there is no class label to learn.
Maximal frequent item set: frequent, with no frequent superset.
To keep only useful rules from a large set, use higher thresholds, lift > 1 and remove redundant rules.
Apriori can cost more than it saves when many long frequent sets exist, because it makes a huge number of candidates.
Real-life example
A supermarket studies thousands of past bills and finds that most people who buy chips also buy a cold drink. So it places chips next to the cold drinks and sales of both go up. Amazon's "Frequently bought together" box works the same way. Both come from association rules mined from past bills.
Figure 4.1: Apriori loop
Same or opposite: support and confidence
Point
Support
Confidence
Same or opposite
Measures
How often the items appear together
How often Y comes when X comes
Opposite
Formula
count(X ∪ Y) / N
count(X ∪ Y) / count(X)
Opposite
Same for X → Y and Y → X
Yes
No
Opposite
Has a minimum threshold
Yes
Yes
Same
Exam tip. Always solve a small example with tables for C₁, L₁, C₂, L₂ and so on. State the Apriori property. End with two rules and their confidence.
Q5. Clustering: types of data, partitional and hierarchical methods
Asked 9 times in 2020, 2023, 2024, 2025 · Unit 5
From the papers
“Explain different data types used in clustering.” (2024, 2025)
“Describe in detail about types of data in cluster analysis.” (2023, 2024)
“Define clustering and explain its importance in unsupervised learning.” (2025)
The short answer
Clustering groups data objects so that objects in one cluster are alike while objects in different clusters are not. It is unsupervised, since no class labels are given.
Write these points
Types of data in cluster analysis
Interval-scaled: numbers such as height or weight. Standardise them first.
Binary: yes or no. Symmetric (gender) or asymmetric (test result, where 1 matters more).
Nominal (categorical): colours, cities. Distance = mismatches / total attributes.
Ordinal: ordered values such as low, medium, high. Map to ranks.
Ratio-scaled: values on an exponential scale, such as growth. Take the log.
Mixed types: combine the above with weights.
Main methods
Partitioning: split data into k groups. k-means uses the mean as centre. k-medoids (PAM) uses an actual object as centre, so outliers matter less.
Hierarchical: agglomerative (merge bottom-up) or divisive (split top-down). The result is a dendrogram. Issue: a merge or split cannot be undone.
Density-based: DBSCAN grows clusters from dense regions.
Grid-based and model-based methods are also used.
PAM in brief
Pick k objects as medoids.
Assign each object to its nearest medoid.
Try swapping a medoid with a non-medoid. Keep the swap if the total distance falls.
Repeat until no swap helps.
k-means with k = 2 on nine numbers.
Data: 2, 4, 10, 12, 3, 20, 30, 11, 25. Start means: 2 and 4. A tie goes to the first cluster.
Round 1: {2, 3} and {4, 10, 12, 20, 30, 11, 25}. New means 2.5 and 16.
Round 2: {2, 4, 3} and {10, 12, 20, 30, 11, 25}. New means 3 and 18.
Round 3: {2, 4, 10, 3} and {12, 20, 30, 11, 25}. New means 4.75 and 19.6.
Round 4: {2, 4, 10, 12, 3, 11} and {20, 30, 25}. New means 7 and 25.
Round 5 gives the same clusters, so k-means stops. Final means: 7 and 25.
Real-life example
A telecom company groups its customers by calls, data use and recharge amount. One cluster is heavy data users, another is voice-only users. Each group gets a different plan offer.
Figure: a dendrogram of hierarchical clusteringFigure 5.1: Families of clustering methods
Same or opposite: k-means and k-medoids
Point
k-means
k-medoids (PAM)
Same or opposite
Centre
Mean of the points
An actual data point
Opposite
Effect of outliers
Large
Small
Opposite
Cost
Low
Higher
Opposite
Needs k in advance
Yes
Yes
Same
Exam tip. Define clustering and say it is unsupervised. List the data types with one example each. For methods, name the family and one algorithm with its main step.
Q6. Knowledge discovery (KDD) process and data mining vs KDD
Asked 8 times in 2020, 2023, 2024, 2025 · Unit 3
From the papers
“What is KDD? Explain data mining as a step in the process of knowledge discovery.” (2023, 2025)
“Define data mining and differentiate it from knowledge discovery in databases.” (2023, 2025)
“Describe the various phases in knowledge discovery process with a neat diagram.” (2023, 2024)
The short answer
Knowledge discovery in databases (KDD) is the whole process of finding useful knowledge from data. Data mining is one step in it: the step that applies algorithms to find patterns.
Write these points
Steps of KDD
Data cleaning: remove noise and fix inconsistent data.
Data integration: combine many sources.
Data selection: pick the data relevant to the task.
Data transformation: change data into forms fit for mining, such as summaries.
Data mining: apply methods to find patterns.
Pattern evaluation: keep only interesting patterns, using measures such as support and confidence.
Knowledge presentation: show the results with charts, tables and rules.
Data mining vs KDD
KDD is the full process from raw data to knowledge.
Data mining is the core step inside KDD that finds the patterns.
In common use, people often say 'data mining' for the whole process.
KDD steps for a college placement study.
1. Selection: take 5 years of student records and placement results.
2. Preprocessing: remove duplicate rows and fill missing CGPA values with the branch average.
3. Transformation: turn CGPA into bands such as 6 to 7, 7 to 8 and 8 plus.
4. Data mining: a decision tree finds that CGPA 7 plus with an internship gives an 85% placement rate.
5. Evaluation: the placement cell checks the rule on this year's batch and shares it with students.
Real-life example
A bank wants to know which customers may stop using its card. It cleans and joins account data, selects card users, mines patterns and checks which ones hold. The final report to managers is the knowledge.
Figure: the steps of the KDD processFigure 6.1: The KDD process
Same or opposite: data mining and KDD
Point
Data mining
KDD
Same or opposite
Scope
One step
Whole process
Opposite
Output
Patterns
Useful knowledge
Opposite
Includes cleaning and presentation
No
Yes
Opposite
Works on large data
Yes
Yes
Same
Exam tip. Draw the KDD process as a flow from databases to knowledge, with data mining marked as one box. Explain each step in one line.
“Discuss about the Three-tier data warehouse architecture with a neat diagram.” (2024, 2025)
“Define data warehousing. Explain the architecture of a data warehouse with a suitable diagram.” (2025)
“Enumerate the building blocks of a data warehouse.” (2024)
The short answer
A data warehouse is a subject-oriented, integrated, time-variant and non-volatile collection of data that supports management decisions. Most warehouses follow a three-tier architecture: a bottom data tier, a middle OLAP tier and a top client tier.
Write these points
The three tiers
Bottom tier, warehouse server: a relational database. Data comes in from operational systems and outside sources through ETL tools (extract, clean, transform, load). It holds the metadata repository and data marts.
Middle tier, OLAP server: ROLAP (on a relational database) or MOLAP (on a multidimensional array). It answers multidimensional queries.
Top tier, front-end tools: query and report tools, analysis tools and data mining tools.
Building blocks
Source data, data staging (ETL), data storage, information delivery, metadata, management and control.
Data mart: a small warehouse for one department, such as sales. It is cheaper and faster to build.
Four properties (Inmon)
Subject-oriented: around customers, products, sales.
Integrated: one format from many sources.
Time-variant: keeps history over years.
Non-volatile: data is loaded and read, not updated row by row.
Three tiers in a retail chain warehouse.
Bottom tier: ETL tools pull daily sales from 200 store databases into one warehouse server.
Middle tier: an OLAP server builds a cube of sales by store, item and month.
Top tier: the manager opens a dashboard and asks for Diwali sales of sweets in Madhya Pradesh.
The query goes from the top tier to the OLAP server, which reads the warehouse and returns the answer in seconds.
Real-life example
A state electricity board pulls billing data from every district office into one warehouse each night. Planners then query five years of usage by district from a dashboard, without slowing the billing systems.
Figure: three-tier data warehouse architectureFigure 7.1: Three-tier data warehouse
Same or opposite: data warehouse and data mart
Point
Data warehouse
Data mart
Same or opposite
Scope
Whole organisation
One department
Opposite
Size
Very large
Small
Opposite
Time to build
Long
Short
Opposite
Supports decision making
Yes
Yes
Same
Exam tip. Draw the three tiers as stacked boxes, with sources and ETL at the bottom. Label ROLAP or MOLAP in the middle. Write the four properties of a warehouse.
Q8. Classification vs clustering and supervised learning
Asked 7 times in 2020, 2023, 2024, 2025 · Unit 4
From the papers
“Briefly explain the differences between classification and clustering and give an example application that would benefit from each.” (2025)
“With a neat block diagram, explain the general approach to solve a classification problem.” (2025)
“Discuss the key differences between supervised and unsupervised learning with examples.” (2025)
The short answer
Classification learns from records with known class labels to predict the class of new records, so it is supervised learning. Clustering groups records without labels, so it is unsupervised.
Write these points
General approach
Training: a learning algorithm builds a model from labelled training data.
Testing: the model predicts labels for a separate test set.
Accuracy = correctly classified test records / all test records.
Use: if accuracy is good enough, the model labels new data.
Ways to measure accuracy
Holdout: two-thirds for training, one-third for testing.
k-fold cross-validation: split into k parts, test on each part in turn and average.
Confusion matrix gives precision, recall and F-measure as well.
Data: 1,000 bank customers with age, income and spending. 600 are marked "repaid loan" or "defaulted".
Classification: train on the 600 labelled customers, then predict whether a new applicant will repay.
Clustering: group all 1,000 customers by income and spending into 4 groups, with no labels used.
The bank uses the first to approve loans and the second to design offers for each group.
Real-life example
A bank trains a model on old loan records marked 'repaid' or 'defaulted'. For a new applicant the model predicts the likely label. Grouping customers by spending with no labels at all would be clustering.
Figure 8.1: General approach to classification
Same or opposite: classification and clustering
Point
Classification
Clustering
Same or opposite
Labels in training data
Yes
No
Opposite
Learning type
Supervised
Unsupervised
Opposite
Example
Spam or not spam
Customer segments
Opposite
Groups similar records
Yes
Yes
Same
Exam tip. Draw the training then testing block diagram. Justify 'supervised' by pointing to the labels. Give one example application for classification and one for clustering.
Q9. OLAP servers (ROLAP, MOLAP, HOLAP) and OLAP vs OLTP
Asked 7 times in 2020, 2023, 2024, 2025 · Unit 2
From the papers
“Write the difference between multi-dimensional OLAP (MOLAP) and Multi-relational OLAP (ROLAP).” (2024, 2025)
“Define OLAP and compare different types of OLAP Servers.” (2025)
“Compare and contrast operational database systems with data warehouse.” (2024)
The short answer
An OLAP server gives a multidimensional view of warehouse data: ROLAP on relational tables, MOLAP on arrays and HOLAP on both. OLTP runs daily transactions while OLAP analyses history.
Write these points
Types of OLAP servers
ROLAP (relational OLAP): stores data in relational tables (star schema). Uses SQL. Scales to very large data. Slower for complex queries.
MOLAP (multidimensional OLAP): stores precomputed cubes in arrays. Very fast queries. Uses more space for sparse data and has limits on size.
HOLAP (hybrid OLAP): detail in relational tables, summaries in cubes. Balances speed and size.
Specialised SQL servers: support star-schema queries for read-only work.
OLTP vs OLAP
Feature
OLTP
OLAP
Users
Clerks, customers
Managers, analysts
Data
Current, detailed
Historical, summarised
Operations
Insert, update, delete
Read, complex queries
Design
ER, normalised
Star or snowflake schema
Size
MB to GB
GB to TB
Same cube, three servers.
Cube: sales by item, city and month for 5 years.
ROLAP: the data stays in star schema tables. Each roll-up becomes a SQL GROUP BY, so it scales well but is slower.
MOLAP: totals are stored ahead in a cube array. Roll-ups are instant, but the cube takes more space.
HOLAP: monthly totals sit in the cube while daily rows stay in tables, which balances speed and space.
Real-life example
Railway ticket booking is OLTP: thousands of small bookings a minute. Planning new trains from five years of booking data is OLAP, run on the warehouse instead of the booking system.
Figure 9.1: Types of OLAP server
Same or opposite: ROLAP and MOLAP
Point
ROLAP
MOLAP
Same or opposite
Storage
Relational tables
Multidimensional arrays
Opposite
Query speed
Slower
Faster
Opposite
Data size handled
Very large
Limited
Opposite
Gives a multidimensional view
Yes
Yes
Same
Exam tip. Give the three server types with storage, speed and size. Then the OLTP versus OLAP table with at least five rows. Tables score well here.
“Explain the following clustering methods in detail: BIRCH, CURE.” (2023, 2024, 2025)
“Explain the BIRCH scalable Algorithm.” (2025)
“Short note: BIRCH algorithm.” (2020, 2024)
The short answer
BIRCH and CURE cluster very large databases. BIRCH builds a compact tree summary in one scan while CURE keeps several scattered points per cluster to find clusters of any shape.
Write these points
BIRCH (Balanced Iterative Reducing and Clustering using Hierarchies)
Clustering feature (CF) of a cluster = (N, LS, SS): number of points, linear sum and square sum. Centre and radius come from it.
CFs add up: CF₁ + CF₂ gives the CF of the merged cluster.
CF tree: a height-balanced tree. Each leaf holds sub-clusters. Parameters: branching factor B and threshold T on the radius.
Phase 1: scan the data once and insert each point into the CF tree.
Phase 2: run any clustering method on the leaf entries.
Strength: linear time, one scan. Weakness: favours round clusters because it uses radius.
CURE (Clustering Using REpresentatives)
Take a random sample and split it into parts.
Each cluster keeps c well-scattered representative points.
Shrink the points towards the centre by a factor α. This reduces the effect of outliers.
Merge the two clusters whose representatives are closest. Repeat.
Strength: finds non-round clusters of different sizes. Weakness: needs several parameters.
A BIRCH clustering feature by hand.
Points (1, 2), (2, 3) and (3, 4) form one sub-cluster.
CF = (N, LS, SS) = (3, (6, 9), (14, 29)). The centroid is LS / N = (2, 3).
A new point (4, 5) joins. Add its values: CF = (4, (10, 14), (30, 54)).
BIRCH never stores the points again. It keeps only these sums in the CF tree.
Real-life example
A mobile company with crores of call records cannot load them all into memory. BIRCH reads the records once, keeps a small CF tree and clusters customers from that summary.
Figure 10.1: BIRCH in two phases
Same or opposite: BIRCH and CURE
Point
BIRCH
CURE
Same or opposite
Cluster represented by
One CF entry
Several shrunk points
Opposite
Cluster shape
Mostly round
Any shape
Opposite
Data scans
One
Uses a sample
Opposite
Built for large databases
Yes
Yes
Same
Exam tip. Write the CF triple and the two phases of BIRCH. For CURE, stress representative points and shrinking. Draw a small CF tree.
Q11. Data warehouse schemas: star, snowflake, fact constellation
Asked 6 times in 2023, 2024, 2025 · Unit 1
From the papers
“Write in brief about schemas in multidimensional data model.” (2025)
“What are the different types of data warehouse schemas? Explain with examples.” (2025)
“Discuss the various types of warehouse schema with suitable example.” (2024)
The short answer
A multidimensional data model stores facts (measures such as sales amount) against dimensions (time, item, location). In a relational warehouse it is laid out as a star, snowflake or fact constellation schema.
Write these points
Star schema: one central fact table holds keys to each dimension and the measures. Each dimension is one table. Simple and fast to query.
Snowflake schema: dimension tables are normalised into smaller tables, such as location → city → state. Less redundancy, more joins.
Fact constellation (galaxy): several fact tables share dimension tables, such as sales and shipping both using time and item.
Fact table: foreign keys plus measures such as units_sold and amount.
Dimension table: descriptive attributes such as item_name, brand and type.
Concept hierarchy: city < state < country lets roll-up and drill-down work.
Schema
Dimension tables
Joins
Use
Star
Denormalised
Few
Most warehouses
Snowflake
Normalised
More
Save space
Fact constellation
Shared
Many facts
Large enterprises
One query on the star schema.
Question: total amount of Samsung items sold in Bhopal in 2025.
Join Sales to Item on item_key (brand = Samsung), to Store on store_key (city = Bhopal) and to Time on time_key (year = 2025).
Sum the amount column of the matching fact rows. Each dimension needs one join, which is why star queries are fast.
Real-life example
An online store's sales fact table holds order amount with keys to date, product, customer and city. Analysts join it with these four dimension tables to answer 'sales of phones in Indore in Diwali week'.
Figure: a star schema for salesFigure 11.1: Star schema for sales
Same or opposite: star and snowflake schema
Point
Star
Snowflake
Same or opposite
Dimension tables
Denormalised
Normalised
Opposite
Number of joins
Fewer
More
Opposite
Query speed
Faster
Slower
Opposite
Has a central fact table
Yes
Yes
Same
Exam tip. Draw the star schema for a sales example with the fact table in the middle and four dimensions. Then show how one dimension splits in the snowflake. Name the measures.
“Explain the rule-based classifier with example.” (2025)
“Explain the structure, working and real-world applications of Rule-Based Algorithms. What are their strengths and limitations?” (2025)
“What are rule-based classifiers? Explain how they derive classification rules from data.” (2025)
The short answer
A rule-based classifier labels records with a set of IF-THEN rules. The IF part tests attribute values and the THEN part gives the class.
Write these points
Rules and their quality
Example: IF age = youth AND student = yes THEN buys_computer = yes.
Coverage = records that satisfy the IF part / all records.
Accuracy = records the rule labels correctly / records it covers.
Conflict resolution when several rules fire: size ordering (most conditions wins) or rule ordering (a ranked decision list).
Ways to get the rules
From a decision tree: each path from root to leaf becomes one rule. Information gain picks the test at each node.
Sequential covering: learn one rule at a time (such as RIPPER), remove the records it covers, repeat for the rest.
Pruning removes conditions that do not improve accuracy on test data.
Strengths and limits
Strengths: easy to read and explain, fast to use, easy to edit by hand.
Limits: many rules for complex data, conflicts between rules, poor on noisy numeric data.
Rules on a loan data set.
R1: IF income = high AND credit = good THEN approve = yes.
R2: IF income = low THEN approve = no.
Customer X has income = high and credit = good. R1 fires, so X is approved.
Coverage and accuracy: if R1 covers 40 of 200 records and 36 of those 40 are correct, coverage = 40/200 = 20% and accuracy = 36/40 = 90%.
Real-life example
A bank's loan system may hold a rule like IF income < 2 lakh AND existing loans > 2 THEN reject. Officers can read and explain such rules to a customer, which is hard with a neural network.
Figure 12.1: Sequential covering
Same or opposite: rule-based classifier and decision tree
Point
Rule-based
Decision tree
Same or opposite
Form
Set of IF-THEN rules
Tree of tests
Opposite
Rules can overlap
Yes
No, one path per record
Opposite
Easy to read
Yes
Yes
Same
Can be made from the other
Rules from a tree
Not directly
Opposite
Exam tip. Write two sample rules. Define coverage and accuracy with a number example. Explain both ways of getting rules: from a tree and by sequential covering.
Q13. K-nearest neighbour and distance-based algorithms
Asked 4 times in 2020, 2024, 2025 · Unit 4
From the papers
“Explain distance-based algorithms.” (2020, 2024)
“Describe the k-Nearest Neighbors (k-NN) algorithm and its role in classification.” (2025)
“Discuss about K-nearest-neighbors algorithm.” (2024)
The short answer
Distance-based algorithms classify a record by how close it is to known records. k-nearest neighbour (k-NN) finds the k closest training records and gives the new record the majority class among them.
Write these points
Choose k, usually odd, such as 3 or 5.
Compute the distance from the new record to every training record. Euclidean: √Σ(xᵢ − yᵢ)². Manhattan: Σ|xᵢ − yᵢ|.
Pick the k records with the smallest distance.
Take the majority class among them. For numbers, take their mean.
Normalise attributes first, or a large-valued attribute such as salary will dominate.
k-NN is a lazy learner: it does no work at training time and all work at prediction time.
Simple distance-based method: compare to the centre (mean) of each class and pick the nearest centre.
Example, k = 3.
Training points: (1,1) A, (2,1) A, (4,4) B, (5,4) B, (1,2) A. New point (2,2).
“Give detailed information about Meta data in data warehousing.” (2023, 2025)
“Discuss Metadata in the context of Data Warehousing and its role in data management. How does it support efficient data retrieval, transformation and analysis?” (2025)
“Explain the importance of metadata in a data warehouse environment. What are the challenges in metadata management?” (2024)
The short answer
Metadata is data about data. In a warehouse it records where data came from, how it was changed, what it means and where it is stored, so it acts as the warehouse's directory.
Business metadata: business names and meanings, owners, how to use the data.
Structural metadata: schema, dimensions, hierarchies, data marts.
Algorithmic metadata: summary rules, aggregation and partition details.
Role
Helps users find data and read reports correctly.
Helps ETL tools extract, clean and transform data the same way each time.
Helps the query tools pick summaries, which makes retrieval faster.
Shows data lineage: which source a value came from.
Challenges
Metadata comes from many tools in different formats.
It must be kept up to date as sources change.
No single standard is used everywhere.
Metadata for one warehouse column.
Column: monthly_sales in the sales fact table.
Business metadata: total sales of a store in one month, in rupees, used for the monthly report.
Technical metadata: source is the POS database of each store, loaded every night at 2 am. Nulls are set to 0.
Operational metadata: last load on 28 Nov, 1.2 million rows, 3 rows rejected for a bad store code.
Real-life example
A report says 'Sales: ₹40 crore'. Metadata tells the reader it means net sales after returns, from the billing system, refreshed last night. Without it two managers may read the same number differently.
Figure 14.1: Metadata in a data warehouse
Same or opposite: technical and business metadata
Point
Technical
Business
Same or opposite
Used by
IT staff, ETL tools
Managers, analysts
Opposite
Content
Sources, mappings, schedules
Meanings, owners
Opposite
Stored in the metadata repository
Yes
Yes
Same
Example
Column cust_id from CRM
'Active customer' means bought in 90 days
Opposite
Exam tip. Define metadata in one line. List the kinds with one example each. Then give its roles and two or three challenges.
“Explain Decision tree induction algorithm for classification. Discuss the usage of information gain in this.” (2023)
“What are the advantages of Decision tree induction?” (2020)
The short answer
A decision tree is a flowchart-like tree whose internal nodes test attributes and whose leaves give classes. ID3 builds it top-down, picking at each node the attribute with the highest information gain.
Write these points
Building the tree
Start with all training records at the root.
Entropy of a set: E(S) = −Σ pᵢ log₂ pᵢ.
Information gain of attribute A: Gain(A) = E(S) − Σ (|Sᵥ| / |S|) E(Sᵥ).
Split on the attribute with the highest gain. Repeat on each branch.
Stop when all records in a node have one class, or no attributes are left (take the majority).
C4.5 uses gain ratio. CART uses the Gini index. Pruning removes branches that only fit noise.
Outlook splits into sunny (2 yes, 3 no), overcast (4, 0), rain (3, 2).
Gain(Outlook) = 0.940 − (5/14 × 0.971 + 4/14 × 0 + 5/14 × 0.971) ≈ 0.247. It is the highest, so Outlook is the root.
Advantages
Easy to understand and turn into rules.
No need to scale data. Handles numbers and categories.
Fast to build and to use.
Real-life example
A bank's credit card approval often follows a tree: is income above a limit? Then, is there a past default? Then, how long in the current job? Each answer leads to approve or reject.
Figure: a decision tree for buys computerFigure 15.1: Building a decision tree (ID3)
Same or opposite: information gain and Gini index
Point
Information gain
Gini index
Same or opposite
Used by
ID3
CART
Opposite
Based on
Entropy
Squared class shares
Opposite
Picks the best split
Yes
Yes
Same
Tree type
Many-way splits
Binary splits
Opposite
Exam tip. Write the entropy and gain formulas, then solve one split with numbers. Draw the small tree that results. List three advantages of trees.
Data Mining and Warehousing (CS-703 B) is an elective in Semester 7 of RGPV B.Tech CSE. It covers how large stores of data are built and how patterns are found in them. Its five units go from data warehouses and OLAP to mining tasks, classification, clustering and association rules. Work through each algorithm on a small table.
Data Mining and Warehousing unit-wise brief
Unit 1: Data warehousing
This unit covers the data warehouse delivery process and architecture, preprocessing (cleaning, integration, transformation and reduction), design with schemas and partitioning, implementation, data marts, metadata, the multidimensional model and pattern warehousing. Know the star and snowflake schemas.
Unit 2: OLAP systems
Here you learn OLAP concepts and queries, the types of OLAP server, OLAP operations, and warehouse hardware and operational design including security, backup and recovery. Learn roll up, drill down, slice and dice with an example.
Unit 3: Introduction to data and data mining
This unit covers data types and quality, preprocessing, similarity measures, summary statistics, distributions, basic data mining tasks, data mining against knowledge discovery in databases, issues in mining, and fuzzy sets. Explain how data mining differs from knowledge discovery.
Unit 4: Supervised learning
The unit covers classification with statistical, distance based, decision tree, neural network, rule based and probabilistic classifiers. Build one decision tree by hand.
Unit 5: Clustering and association rule mining
The last unit covers hierarchical and partitional clustering, clustering large databases with BIRCH, DBSCAN and CURE, and association rules with the Apriori and FP-growth algorithms, including parallel and distributed versions. Run Apriori on a tiny basket of items.
Units follow the RGPV scheme and syllabus, B.Tech Computer Science and Engineering, Semester 7 (AICTE flexible curriculum, w.e.f. July 2020) (copy hosted by VIT Bhopal (RGPV-affiliated)). For the full topic list of each unit, open the Data Mining and Warehousing notes.
What are the most important topics in Data Mining and Warehousing?
By how often they were asked in the papers on this site: Data preprocessing: cleaning, integration and missing values (12 times); Data mining tasks, functionalities, primitives and issues (10 times); OLAP operations: roll up, drill down, slice, dice, pivot (9 times); Apriori algorithm and association rules (9 times); Clustering: types of data, partitional and hierarchical methods (9 times).
How were these Data Mining and Warehousing 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 Data Mining and Warehousing important questions with answers?
Yes. The Paperwala Imp Question & Answer PDF for Data Mining and Warehousing is free to download from this page.
The 15 most repeated topics of Data Mining and Warehousing (CS-703-B) for RGPV B.Tech CSE semester 7, counted from the previous year papers on this site. Data Mining and Warehousing is also searched for as CD-703-D and CI-802-A.