CS-703-B Data Mining and Warehousing

Data Mining and Warehousing (CS-703-B) Important Questions

RGPV · B.Tech · CSE · Semester 7 · Current scheme · 4 papers (2020 to 2025)

  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 - Data Mining and Warehousing 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.

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

  1. Data cleaning: fill missing values, smooth noise, find and remove outliers, fix inconsistencies.
  2. 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.
  3. Data transformation: normalisation (min-max, z-score), aggregation, generalisation (city to state), building new attributes.
  4. Data reduction: smaller data with the same results. Dimension reduction (PCA, attribute selection), sampling, aggregation into cubes.
  5. Discretisation: turn numbers into ranges, such as age into young, middle and old.

Handling missing values

  1. Ignore the record (only when few are missing).
  2. Fill by hand.
  3. Fill with a constant such as 'Unknown'.
  4. Fill with the mean or median of the attribute, or of the same class.
  5. 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
Figure 1.1: Steps of data preprocessing

Same or opposite: data cleaning and data reduction

PointCleaningReductionSame or opposite
GoalCorrect the dataMake the data smallerOpposite
ExamplesFill missing values, remove noisePCA, samplingOpposite
Changes the number of rows or columnsSometimesYesOpposite
Part of preprocessingYesYesSame

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.

Back to the topic list

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

  1. Characterisation and discrimination: summarise a class, or compare two classes.
  2. Association analysis: items that occur together, such as bread and butter.
  3. Classification and regression: predict a class label or a number.
  4. Clustering: group similar objects without labels.
  5. Outlier analysis: find unusual objects, such as fraud.
  6. 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

  1. Methodology: mining different kinds of knowledge, handling noise, judging which patterns are interesting.
  2. User interaction: query languages, showing results clearly, using background knowledge.
  3. Performance: efficiency and scalability on huge data, parallel and incremental mining.
  4. Data types: relational, text, web, spatial, multimedia data.
  5. 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
Figure 2.1: Data mining functionalities

Same or opposite: descriptive and predictive mining

PointDescriptivePredictiveSame or opposite
AimDescribe the dataPredict unknown valuesOpposite
ExamplesClustering, associationClassification, regressionOpposite
Needs labelled dataNoUsually yesOpposite
Finds patterns in dataYesYesSame

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.

Back to the topic 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

  1. 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.
  2. Drill-down: the reverse. Go to more detail. Example: sales by quarter become sales by month.
  3. Slice: fix one dimension to one value to get a sub-cube. Example: time = Q1.
  4. Dice: pick values on two or more dimensions. Example: time in Q1 or Q2, location in Bhopal or Indore, item = mobile.
  5. Pivot (rotate): turn the cube to view it from another side, such as swapping rows and columns.
  6. Other operations: drill-across (across two fact tables) and drill-through (down to the base table rows).
  7. OLAP queries run these operations on the cube and return totals, averages or counts at the chosen level.
OperationWhat changesExample
Roll-upLess detailCity → state
Drill-downMore detailQuarter → month
SliceOne dimension fixedTime = Q1
DiceSub-cube on 2+ dimensionsQ1-Q2, Bhopal-Indore
PivotView rotatedRows ↔ columns

Roll up and slice on sales figures.

Sales in units: Bhopal Q1 = 400, Bhopal Q2 = 300, Indore Q1 = 500, Indore Q2 = 200.

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 cube
Figure: the five OLAP operations on a sales cube
Figure 3.1: OLAP operations on a cube
Figure 3.1: OLAP operations on a cube

Same or opposite: roll-up and drill-down

PointRoll-upDrill-downSame or opposite
DetailLessMoreOpposite
Direction in hierarchyUpDownOpposite
ExampleMonth → quarterYear → quarterOpposite
Works on a data cubeYesYesSame

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.

Back to the topic list

Q4. Apriori algorithm and association rules

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

From the papers

  • “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

  1. Count each item. Keep those with support ≥ min support: L₁.
  2. Join Lₖ₋₁ with itself to make candidates Cₖ.
  3. Prune: drop any candidate with an infrequent subset. Every subset of a frequent set must be frequent (the Apriori property).
  4. Scan the data to count Cₖ. Keep the frequent ones as Lₖ. Repeat until no new set is found.
  5. Rule generation: for each frequent set L and each subset S, make S → (L − S) if its confidence ≥ min confidence.

Example, min support count 2.

T1 {Bread, Milk}, T2 {Bread, Butter, Milk}, T3 {Bread, Butter}, T4 {Milk, Tea}, T5 {Bread, Butter, Milk}.

L₁: Bread 4, Butter 3, Milk 4. Tea (1) is dropped.

L₂: {Bread, Butter} 3, {Bread, Milk} 3, {Butter, Milk} 2.

L₃: {Bread, Butter, Milk} 2.

Rule Butter → Bread: confidence 3/3 = 100 %. Bread → Butter: 3/4 = 75 %.

Points often asked

  • 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
Figure 4.1: Apriori loop

Same or opposite: support and confidence

PointSupportConfidenceSame or opposite
MeasuresHow often the items appear togetherHow often Y comes when X comesOpposite
Formulacount(X ∪ Y) / Ncount(X ∪ Y) / count(X)Opposite
Same for X → Y and Y → XYesNoOpposite
Has a minimum thresholdYesYesSame

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.

Back to the topic list

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

  1. Interval-scaled: numbers such as height or weight. Standardise them first.
  2. Binary: yes or no. Symmetric (gender) or asymmetric (test result, where 1 matters more).
  3. Nominal (categorical): colours, cities. Distance = mismatches / total attributes.
  4. Ordinal: ordered values such as low, medium, high. Map to ranks.
  5. Ratio-scaled: values on an exponential scale, such as growth. Take the log.
  6. 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

  1. Pick k objects as medoids.
  2. Assign each object to its nearest medoid.
  3. Try swapping a medoid with a non-medoid. Keep the swap if the total distance falls.
  4. 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 clustering
Figure: a dendrogram of hierarchical clustering
Figure 5.1: Families of clustering methods
Figure 5.1: Families of clustering methods

Same or opposite: k-means and k-medoids

Pointk-meansk-medoids (PAM)Same or opposite
CentreMean of the pointsAn actual data pointOpposite
Effect of outliersLargeSmallOpposite
CostLowHigherOpposite
Needs k in advanceYesYesSame

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.

Back to the topic list

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

  1. Data cleaning: remove noise and fix inconsistent data.
  2. Data integration: combine many sources.
  3. Data selection: pick the data relevant to the task.
  4. Data transformation: change data into forms fit for mining, such as summaries.
  5. Data mining: apply methods to find patterns.
  6. Pattern evaluation: keep only interesting patterns, using measures such as support and confidence.
  7. 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 process
Figure: the steps of the KDD process
Figure 6.1: The KDD process
Figure 6.1: The KDD process

Same or opposite: data mining and KDD

PointData miningKDDSame or opposite
ScopeOne stepWhole processOpposite
OutputPatternsUseful knowledgeOpposite
Includes cleaning and presentationNoYesOpposite
Works on large dataYesYesSame

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.

Back to the topic list

Q7. Three-tier data warehouse architecture

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

From the papers

  • “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

  1. 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.
  2. Middle tier, OLAP server: ROLAP (on a relational database) or MOLAP (on a multidimensional array). It answers multidimensional queries.
  3. 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 architecture
Figure: three-tier data warehouse architecture
Figure 7.1: Three-tier data warehouse
Figure 7.1: Three-tier data warehouse

Same or opposite: data warehouse and data mart

PointData warehouseData martSame or opposite
ScopeWhole organisationOne departmentOpposite
SizeVery largeSmallOpposite
Time to buildLongShortOpposite
Supports decision makingYesYesSame

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.

Back to the topic list

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

  1. Training: a learning algorithm builds a model from labelled training data.
  2. Testing: the model predicts labels for a separate test set.
  3. Accuracy = correctly classified test records / all test records.
  4. 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.

Supervised learning techniques

  • Statistical (Naive Bayes), distance-based (k-NN), decision trees, rule-based, neural networks.

Same data, two questions.

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
Figure 8.1: General approach to classification

Same or opposite: classification and clustering

PointClassificationClusteringSame or opposite
Labels in training dataYesNoOpposite
Learning typeSupervisedUnsupervisedOpposite
ExampleSpam or not spamCustomer segmentsOpposite
Groups similar recordsYesYesSame

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.

Back to the topic list

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

  1. ROLAP (relational OLAP): stores data in relational tables (star schema). Uses SQL. Scales to very large data. Slower for complex queries.
  2. MOLAP (multidimensional OLAP): stores precomputed cubes in arrays. Very fast queries. Uses more space for sparse data and has limits on size.
  3. HOLAP (hybrid OLAP): detail in relational tables, summaries in cubes. Balances speed and size.
  4. Specialised SQL servers: support star-schema queries for read-only work.

OLTP vs OLAP

FeatureOLTPOLAP
UsersClerks, customersManagers, analysts
DataCurrent, detailedHistorical, summarised
OperationsInsert, update, deleteRead, complex queries
DesignER, normalisedStar or snowflake schema
SizeMB to GBGB 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
Figure 9.1: Types of OLAP server

Same or opposite: ROLAP and MOLAP

PointROLAPMOLAPSame or opposite
StorageRelational tablesMultidimensional arraysOpposite
Query speedSlowerFasterOpposite
Data size handledVery largeLimitedOpposite
Gives a multidimensional viewYesYesSame

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.

Back to the topic list

Q10. BIRCH and CURE clustering

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

From the papers

  • “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)

  1. Clustering feature (CF) of a cluster = (N, LS, SS): number of points, linear sum and square sum. Centre and radius come from it.
  2. CFs add up: CF₁ + CF₂ gives the CF of the merged cluster.
  3. CF tree: a height-balanced tree. Each leaf holds sub-clusters. Parameters: branching factor B and threshold T on the radius.
  4. Phase 1: scan the data once and insert each point into the CF tree.
  5. Phase 2: run any clustering method on the leaf entries.
  6. Strength: linear time, one scan. Weakness: favours round clusters because it uses radius.

CURE (Clustering Using REpresentatives)

  1. Take a random sample and split it into parts.
  2. Each cluster keeps c well-scattered representative points.
  3. Shrink the points towards the centre by a factor α. This reduces the effect of outliers.
  4. Merge the two clusters whose representatives are closest. Repeat.
  5. 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
Figure 10.1: BIRCH in two phases

Same or opposite: BIRCH and CURE

PointBIRCHCURESame or opposite
Cluster represented byOne CF entrySeveral shrunk pointsOpposite
Cluster shapeMostly roundAny shapeOpposite
Data scansOneUses a sampleOpposite
Built for large databasesYesYesSame

Exam tip. Write the CF triple and the two phases of BIRCH. For CURE, stress representative points and shrinking. Draw a small CF tree.

Back to the topic list

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

  1. Star schema: one central fact table holds keys to each dimension and the measures. Each dimension is one table. Simple and fast to query.
  2. Snowflake schema: dimension tables are normalised into smaller tables, such as location → city → state. Less redundancy, more joins.
  3. Fact constellation (galaxy): several fact tables share dimension tables, such as sales and shipping both using time and item.
  4. Fact table: foreign keys plus measures such as units_sold and amount.
  5. Dimension table: descriptive attributes such as item_name, brand and type.
  6. Concept hierarchy: city < state < country lets roll-up and drill-down work.
SchemaDimension tablesJoinsUse
StarDenormalisedFewMost warehouses
SnowflakeNormalisedMoreSave space
Fact constellationSharedMany factsLarge 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 sales
Figure: a star schema for sales
Figure 11.1: Star schema for sales
Figure 11.1: Star schema for sales

Same or opposite: star and snowflake schema

PointStarSnowflakeSame or opposite
Dimension tablesDenormalisedNormalisedOpposite
Number of joinsFewerMoreOpposite
Query speedFasterSlowerOpposite
Has a central fact tableYesYesSame

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.

Back to the topic list

Q12. Rule-based classification

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

From the papers

  • “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

  1. Example: IF age = youth AND student = yes THEN buys_computer = yes.
  2. Coverage = records that satisfy the IF part / all records.
  3. Accuracy = records the rule labels correctly / records it covers.
  4. 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
Figure 12.1: Sequential covering

Same or opposite: rule-based classifier and decision tree

PointRule-basedDecision treeSame or opposite
FormSet of IF-THEN rulesTree of testsOpposite
Rules can overlapYesNo, one path per recordOpposite
Easy to readYesYesSame
Can be made from the otherRules from a treeNot directlyOpposite

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.

Back to the topic list

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

  1. Choose k, usually odd, such as 3 or 5.
  2. Compute the distance from the new record to every training record. Euclidean: √Σ(xᵢ − yᵢ)². Manhattan: Σ|xᵢ − yᵢ|.
  3. Pick the k records with the smallest distance.
  4. Take the majority class among them. For numbers, take their mean.
  5. Normalise attributes first, or a large-valued attribute such as salary will dominate.
  6. k-NN is a lazy learner: it does no work at training time and all work at prediction time.
  7. 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).

Distances: (1,1) 1.41, (2,1) 1.00, (1,2) 1.00, (4,4) 2.83, (5,4) 3.61.

Three nearest are all A, so the new point is A.

Real-life example

A music app finds the listeners whose taste is closest to yours and suggests songs they liked. That is the nearest neighbour idea in daily use.

Figure 13.1: k-NN classification
Figure 13.1: k-NN classification

Same or opposite: k-NN and decision tree

Pointk-NNDecision treeSame or opposite
Training effortNone (lazy)Builds a tree (eager)Opposite
Prediction effortHighLowOpposite
Easy to explainLessYesOpposite
Supervised classifierYesYesSame

Exam tip. Write the steps, the distance formula and a small worked example with a table of distances. Mention normalisation and choice of k.

Back to the topic list

Q14. Metadata in a data warehouse

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

From the papers

  • “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.

Write these points

Kinds of metadata

  1. Technical (operational) metadata: source systems, ETL rules, table and column details, refresh dates.
  2. Business metadata: business names and meanings, owners, how to use the data.
  3. Structural metadata: schema, dimensions, hierarchies, data marts.
  4. 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
Figure 14.1: Metadata in a data warehouse

Same or opposite: technical and business metadata

PointTechnicalBusinessSame or opposite
Used byIT staff, ETL toolsManagers, analystsOpposite
ContentSources, mappings, schedulesMeanings, ownersOpposite
Stored in the metadata repositoryYesYesSame
ExampleColumn cust_id from CRM'Active customer' means bought in 90 daysOpposite

Exam tip. Define metadata in one line. List the kinds with one example each. Then give its roles and two or three challenges.

Back to the topic list

Q15. Decision tree induction and information gain

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

From the papers

  • “Explain Decision tree-based algorithms.” (2024)
  • “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

  1. Start with all training records at the root.
  2. Entropy of a set: E(S) = −Σ pᵢ log₂ pᵢ.
  3. Information gain of attribute A: Gain(A) = E(S) − Σ (|Sᵥ| / |S|) E(Sᵥ).
  4. Split on the attribute with the highest gain. Repeat on each branch.
  5. Stop when all records in a node have one class, or no attributes are left (take the majority).
  6. C4.5 uses gain ratio. CART uses the Gini index. Pruning removes branches that only fit noise.

Play tennis data: 9 yes, 5 no.

E(S) = −(9/14)log₂(9/14) − (5/14)log₂(5/14) = 0.940.

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 computer
Figure: a decision tree for buys computer
Figure 15.1: Building a decision tree (ID3)
Figure 15.1: Building a decision tree (ID3)

Same or opposite: information gain and Gini index

PointInformation gainGini indexSame or opposite
Used byID3CARTOpposite
Based onEntropySquared class sharesOpposite
Picks the best splitYesYesSame
Tree typeMany-way splitsBinary splitsOpposite

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.

Back to the topic list

About Data Mining and Warehousing

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.

Start with the latest papers

Data Mining and Warehousing - Jun 2025

Data Mining and Warehousing - Dec 2024

Data Mining and Warehousing - Nov 2023

See all 4 papers →

Data Mining and Warehousing (CS-703-B) FAQs

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.

Also known as CD-703-D, CI-802-A